Hibernate ORM SequenceStyleGenerator - 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 SequenceStyleGenerator class.

This code example shows how to use the following methods:
 * 3)可以按照表名进行自动命名序列名,模式{table}_seq 
 * </pre> 
 *  
 * @author chaostone 
 */ 
public class TableSeqGenerator extends SequenceStyleGenerator {
  private static final Logger logger = LoggerFactory.getLogger(TableSeqGenerator.class);
 
  /** Updated by OverrideConfiguration.secondPass */ 
  public static TableNamingStrategy namingStrategy;
 
  // 表名、字段名、序列长度 
  private static final int MaxLength = 30;
  /** 序列命名模式 */ 
  private String sequencePattern = "seq_{table}";
 
  /** 
   * If the parameters do not contain a {@link SequenceGenerator#SEQUENCE} name, we assign one 
   * based on the table name. 
   */ 
4
CodeRank
Connect your IDE to all the code out there  Get Codota for Java