| Enum | Description |
|---|---|
| Compare |
compare有多个枚举值
|
| Annotation Type | Description |
|---|---|
| BoostSwitch |
同一个Entity类的不同的Document,可能需要设置不同的权重
|
| Entity |
表示需要映射到MongoDB中的一个实体。
如果设置了capped=true,则需要设置capSize和capMax两者中的其中一个。 |
| Indexed | |
| IndexEmbed |
表示需要嵌入对该Embed对象的索引。结合@IndexEmbedBy使用。索引域的名称形如“embed.x”。
|
| IndexEmbedBy |
表示需要嵌入到其它对象的@Embed或@EmbedList域的索引中。
|
| IndexEmbedList |
表示需要嵌入对该EmbedList对象的索引。结合@IndexEmbedBy使用。索引域的名称形如“embed.x”。
|
| IndexFilter |
表示只有满足该条件的实体才会被索引,否则不创建索引。
IndexFilter有2个参数:compare和value。 compare表示比较操作,是枚举类型Compare。value是比较的值,是字符串,会相应的解析成该属性类型的值。 在一个Entity类上可以有多个@IndexFilter注解,表示需要同时满足这些条件。 |
| IndexProperty |
标注需要索引的字段
支持的数据类型包括:String、char、boolean、int、long、float、double、Date等基本数据类型。 还支持上述基本数据类型组成的数组、List、Set等。这些集合中的元素,不管是什么数据类型,都会连结成一个字符串,然后加以索引。 |
| IndexRef |
表示需要嵌入对该Ref对象的索引。结合@IndexRefBy使用。索引域的名称形如“father.name”。
|
| IndexRefBy |
表示需要嵌入到其它对象的@Ref或@RefList域的索引中。
|
| IndexRefList |
表示需要嵌入对该RefList对象的索引。结合@IndexRefBy使用。索引域的名称形如“father.name”。
|