public class ValueObjectId extends UnboundedValueObjectId
| Modifier and Type | Class and Description |
|---|---|
static class |
ValueObjectId.ValueObjectIdDTO |
| Constructor and Description |
|---|
ValueObjectId(ValueObject valueObject,
GlobalCdoId ownerId,
String fragment) |
ValueObjectId(ValueObject valueObject,
OwnerContext ownerContext) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getCdoId()
ID of Client's domain object, should be unique in Class scope,
for example database primary key or any domain identifier like user.login
|
String |
getFragment()
Path to ValueObject, should be unique in the Entity instance scope.
|
GlobalCdoId |
getOwnerId() |
String |
value()
For ex.:
org.javers.core.model.SnapshotEntity/1
org.javers.core.model.SnapshotEntity/2#setOfValueObjects
|
getCdoClassequals, equals, hashCode, toStringpublic ValueObjectId(ValueObject valueObject, GlobalCdoId ownerId, String fragment)
public ValueObjectId(ValueObject valueObject, OwnerContext ownerContext)
public String getFragment()
public Object getCdoId()
GlobalCdoIdgetCdoId in class UnboundedValueObjectIdpublic GlobalCdoId getOwnerId()
public String value()
GlobalCdoIdFor ex.: org.javers.core.model.SnapshotEntity/1 org.javers.core.model.SnapshotEntity/2#setOfValueObjects
value in class UnboundedValueObjectIdCopyright © 2014. All rights reserved.