Each stored attribute is a simple array of bytes, but it's possible to interpret the attribute as a Boolean, integer, or string attribute.
每个已保存的属性是一个简单的字节数组,但是可以将该属性转换为Boolean、整数或字符串属性。
Enumerations and numeric ranges: For example, the value of a particular string attribute must be a, c, or D. Another example: the value of a particular numeric must be between 1 and 500.
枚举与数字范围:例如,某个特定字符串属性必须为A、c或者d。再比如,某个特定的数字必须在1至500之间。
If you find this really annoying or want to do some quick prototyping, you could consider Guice's built-in @Named annotation, which accepts a string attribute. Listing 14 illustrates that alternative
如果您觉得这很繁琐,或者需要执行快速的原型设计,可以考虑Guice 的内置 @Named注释,它接受一个字符串属性。
For instance, a String attribute of an entity could be implemented as a CHAR, VARCHAR, or TEXT type of column.
例如,可以将实体的String类型的属性实现为CHAR、VARCHAR或text类型的列。
For instance, a String attribute of an entity could be implemented as a CHAR, VARCHAR, or TEXT type of column.
例如,可以将实体的String类型的属性实现为CHAR、VARCHAR或text类型的列。
应用推荐