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
    String getName()
    Return the name of the IdGenerator.
    Object nextValue()
    Return the next Id value.
  • Method Details

    • nextValue

      Return the next Id value.
    • getName

      Return the name of the IdGenerator.

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