Module io.ebean.api

Interface IdGenerator


public interface IdGenerator
A customer Id generator that can be registered with Ebean and assigned to @Id properties using the name attribute of @GeneratedValue.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the name of the IdGenerator.
    Return the next Id value.
  • Method Details

    • nextValue

      Object nextValue()
      Return the next Id value.
    • getName

      String getName()
      Return the name of the IdGenerator.

      The name is used to assign the IdGenerator to a property using @GeneratedValue(name="myGeneratorName")