Class VersionedId

  • All Implemented Interfaces:
    Serializable

    public class VersionedId
    extends Object
    implements Serializable
    A versioned identifier to uniquely identify a specific version of an entity. This is used to implement optimistic locking.
    See Also:
    Serialized Form
    • Constructor Detail

      • VersionedId

        public VersionedId​(long id)
        Creates a versioned identifier with the initial version. Used when first creating an entity with a predefined id.
      • VersionedId

        public VersionedId​(long id,
                           long version)