Class ValueObjectId

java.lang.Object
org.javers.core.metamodel.object.GlobalId
org.javers.core.metamodel.object.ValueObjectId
All Implemented Interfaces:
Serializable, Comparable<GlobalId>
Direct Known Subclasses:
ValueObjectIdWithHash

public class ValueObjectId extends GlobalId
ValueObject global unique identifier.

Since ValueObjects doesn't have public Id, they are identified by fragment path in the context of owning Entity instance.
See Also:
  • Constructor Details

  • Method Details

    • getFragment

      public String getFragment()
      Path to ValueObject, should be unique in the Entity instance scope. Usually, a property name. It works like fragment identifier in URL
    • hasOwnerOfType

      public boolean hasOwnerOfType(EntityType entityType)
    • getOwnerId

      public GlobalId getOwnerId()
    • masterObjectId

      public GlobalId masterObjectId()
      Overrides:
      masterObjectId in class GlobalId
    • value

      public String value()
      Description copied from class: GlobalId
       For ex.:
       org.javers.core.model.SnapshotEntity/1
       org.javers.core.model.SnapshotEntity/2#setOfValueObjects
       
      Specified by:
      value in class GlobalId
    • getParentValueObjectIds

      public Set<ValueObjectId> getParentValueObjectIds()
    • toString

      public String toString()
      Overrides:
      toString in class GlobalId