@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.
|
java.lang.String |
name
Manually set the internal name used by Realm for this class.
|
java.lang.String |
value
Manually set the internal name used by Realm for this class.
|
public abstract java.lang.String value
RealmModule.classNamingPolicy().public abstract java.lang.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.