Code example for SequenceStyleGenerator

0
 * 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. 
   */ 
Experience pair programming with AI  Get Codota for Java