@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface Entity
| Modifier and Type | Required Element and Description |
|---|---|
long |
capMax
long型,设置Capped Collection的最多能存储多少个document,默认值为-1,表示未设置。
|
boolean |
capped
boolean型,表示该Entity类对应的是Capped Collection,缺省值为false。
|
long |
capSize
long型,设置Capped Collection的空间大小,以字节为单位,默认值为-1,表示未设置。
|
java.lang.String |
name
String型,表示其在MongoDB中的collection的名称。name属性可以省略,默认使用类名的全小写。
|