Class EntityIdWithLockingVersion


  • public final class EntityIdWithLockingVersion
    extends Object
    A POJO for the ID and locking version of an entity.
    Since:
    8.3.0
    Author:
    XIMA MEDIA GmbH
    • Constructor Detail

      • EntityIdWithLockingVersion

        public EntityIdWithLockingVersion​(long id,
                                          int lockingVersion)
        Creates a new POJO for the ID and locking version of an entity.
        Parameters:
        id - The ID of the entity.
        lockingVersion - The locking version of the entity.
    • Method Detail

      • id

        public long id()
        The IEntity.getId() ID} of the entity.
        Returns:
        The ID of the entity.
      • lockingVersion

        public int lockingVersion()
        The locking version of the entity.
        Returns:
        The locking version of the entity.