Example usage for org.hibernate.id PostInsertIdentifierGenerator interface-usage

List of usage examples for org.hibernate.id PostInsertIdentifierGenerator interface-usage

Introduction

In this page you can find the example usage for org.hibernate.id PostInsertIdentifierGenerator interface-usage.

Usage

From source file org.opensingular.lib.support.persistence.util.HybridIdentityOrSequenceGenerator.java

public class HybridIdentityOrSequenceGenerator
        implements PostInsertIdentifierGenerator, Configurable, BulkInsertionCapableIdentifierGenerator {

    private Logger logger = LoggerFactory.getLogger(getClass());

    private static final String ENTITY = "entity_name";

From source file org.primeframework.persistence.hibernate.GeneratedKeysGenerator.java

/**
 * This class provides identifier generation that uses the JDBC 3 getGeneratedKeys exclusively.
 * <p/>
 * The only caveat is that if the Entity is Identifiable and has an ID, then that ID is returned.
 *
 * @author Brian Pontarelli