Hibernate ORM SequenceGenerator - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM SequenceGenerator class.

This code example shows how to use the following methods:
 * http://www.hibernate.org/296.html 
 * @author josh 
public class MySeqGenerator extends SequenceGenerator {
     * If the parameters do not contain a {@link SequenceGenerator#SEQUENCE} 
     * name, we assign one based on the table name. 
    public void configure(Type type, Properties params, Dialect dialect)
            throws MappingException {
        if (params.getProperty(SEQUENCE) == null
                || params.getProperty(SEQUENCE).length() == 0) {
            String tableName = params
            if (tableName != null) {
                String seqName = "seq_" + tableName;