Entity Annotations in ObjectBox C++
/// This entity is not annotated and serves as a relation target in this example
table Simple {
id:ulong;
}
/// objectbox: name=AnnotatedEntity
table Annotated {
/// Objectbox requires an ID property. Recognized automatically
/// if it has a right name ("id"), otherwise it must be annotated.
/// objectbox:id
identifier:ulong;
/// objectbox:name="name",index=hash64
fullName:string;
/// objectbox:id-companion, date
time:int64;
/// objectbox:transient
skippedField:[uint64];
/// objectbox:relation=Simple
relId:ulong;
}
/// This entity is synchronized between clients.
/// Requires ObjectBox Sync (see below and https://objectbox.io/sync/)
/// objectbox:sync
table SharedInfo {
id:ulong;
...
}