@Retention(value=RUNTIME) @Target(value=TYPE) @Inherited public @interface RealmClass
Modifier and Type | Optional Element and Description |
---|---|
boolean |
embedded
Define objects of this type as "Embedded".
|
RealmNamingPolicy |
fieldNamingPolicy
The naming policy applied to all fields in this class.
|
String |
name
Manually set the internal name used by Realm for this class.
|
String |
value
Manually set the internal name used by Realm for this class.
|
public abstract String value
RealmModule.classNamingPolicy()
.public abstract String name
RealmModule.classNamingPolicy()
.public abstract boolean embedded
\@PrimaryKey
.
\@LinkingObjects
annotation:
\@LinkingObjects
public Parent parent;
public abstract RealmNamingPolicy fieldNamingPolicy
RealmNamingPolicy.NO_POLICY
.
It is possible to override the naming policy for each field by using the RealmField
annotation.