| com.sleepycat.persist.model.Relationship
Relationship | public enum Relationship (Code) | | Defines the relationship between instances of the entity class and the
secondary keys. This can be specified using a
SecondaryKey.relate annotation.
author: Mark Hayes |
Field Summary | |
Enum Constant | MANY_TO_MANY Relates many entities to many secondary keys. | Enum Constant | MANY_TO_ONE Relates many entities to one secondary key. | Enum Constant | ONE_TO_MANY Relates one entity to many secondary keys. | Enum Constant | ONE_TO_ONE Relates one entity to one secondary key. |
MANY_TO_MANY | Enum Constant MANY_TO_MANY(Code) | | Relates many entities to many secondary keys.
The secondary index will have non-unique keys, in other words,
duplicates will be allowed.
The secondary key field must be an array or collection type.
|
MANY_TO_ONE | Enum Constant MANY_TO_ONE(Code) | | Relates many entities to one secondary key.
The secondary index will have non-unique keys; in other words,
duplicates will be allowed.
The secondary key field is singular, in other words, it may not be an
array or collection type.
|
ONE_TO_MANY | Enum Constant ONE_TO_MANY(Code) | | Relates one entity to many secondary keys.
The secondary index will have unique keys, in other words, duplicates
will not be allowed.
The secondary key field must be an array or collection type.
|
ONE_TO_ONE | Enum Constant ONE_TO_ONE(Code) | | Relates one entity to one secondary key.
The secondary index will have unique keys, in other words, duplicates
will not be allowed.
The secondary key field is singular, in other words, it may not be an
array or collection type.
|
|
|