Class InstanceId

java.lang.Object
org.javers.core.metamodel.object.GlobalId
org.javers.core.metamodel.object.InstanceId
All Implemented Interfaces:
Serializable, Comparable<GlobalId>

public class InstanceId extends GlobalId
Entity instance global identifier, consists of Entity reference and cdoId
See Also:
  • Constructor Details

  • Method Details

    • getCdoId

      public Object getCdoId()
      Identifier of (client's) Entity instance, should be unique in Entity scope. For example database primary key or any domain identifier like user.login
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class GlobalId