Class IdGeneratorEntity

  • All Implemented Interfaces:
    IdGenerator

    public class IdGeneratorEntity
    extends Object
    implements IdGenerator
    Entity to hold id generator values in hibernate. It has next id value for some arbitrary names.
    • Constructor Detail

      • IdGeneratorEntity

        public IdGeneratorEntity()
      • IdGeneratorEntity

        public IdGeneratorEntity​(@NotNull
                                 @NotNull String name,
                                 long nextId)
    • Method Detail

      • getNextId

        public long getNextId()
        Description copied from interface: IdGenerator
        Next id for this generator
        Specified by:
        getNextId in interface IdGenerator
      • setName

        public void setName​(String name)
      • setNextId

        public void setNextId​(long nextId)