All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.avaje.ebean.config.IdGenerator Maven / Gradle / Ivy

There is a newer version: 8.1.1
Show newest version
package com.avaje.ebean.config;

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

  /**
   * Return the next Id value.
   */
  Object nextValue();

  /**
   * Return the name of the IdGenerator.
   * 

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

*/ String getName(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy