@Override public void configure(Type type, Properties params, ServiceRegistry serviceRegistry) throws MappingException { super.configure( type, params, serviceRegistry ); }
@Override public void configure(Type type, Properties params, ServiceRegistry serviceRegistry) throws MappingException { super.configure( type, params, serviceRegistry ); maxLo = ConfigurationHelper.getInt( MAX_LO, params, 9 ); if ( maxLo >= 1 ) { hiloOptimizer = new LegacyHiLoAlgorithmOptimizer( getIdentifierType().getReturnedClass(), maxLo ); } }
@Override public void configure(Type type, Properties params, Dialect dialect) throws MappingException { super.configure( type, params, dialect ); }
@Override public void configure(Type type, Properties params, Dialect dialect) throws MappingException { super.configure( type, params, dialect ); }
@Override public void configure(JavaTypeDescriptor javaTypeDescriptor, Properties params, ServiceRegistry serviceRegistry) throws MappingException { super.configure( javaTypeDescriptor, params, serviceRegistry ); }
public void configure(Type type, Properties params, Dialect dialect) throws MappingException { super.configure( type, params, dialect ); }
@Override public void configure(Type type, Properties params, Dialect dialect) throws MappingException { String tableName = params.getProperty(PersistentIdentifierGenerator.TABLE); if (tableName != null) { StringBuilder sequenceNameBuilder = new StringBuilder(); sequenceNameBuilder.append(tableName); sequenceNameBuilder.append(SEQUENCE_NAME_SUFFIX); params.setProperty(SEQUENCE, sequenceNameBuilder.toString().toUpperCase()); } super.configure(type, params, dialect); }
@Override public void configure( Type type, Properties properties, Dialect dialect ) throws MappingException { String defaultSeqValue = "hibernate_sequence"; String sequenceName = ConfigurationHelper.getString(SEQUENCE, properties, defaultSeqValue); // use "intact_ac" only if the default sequence name is provided if ( sequenceName.equals( defaultSeqValue ) ) { sequenceName = INTACT_AC_SEQUENCE_NAME; properties.put( SEQUENCE, sequenceName ); } super.configure( type, properties, dialect ); }
@Override public void configure( Type type, Properties properties, Dialect dialect ) throws MappingException { String defaultSeqValue = "hibernate_sequence"; String sequenceName = PropertiesHelper.getString( SEQUENCE, properties, defaultSeqValue ); // use "intact_ac" only if the default sequence name is provided if ( sequenceName.equals( defaultSeqValue ) ) { sequenceName = INTACT_AC_SEQUENCE_NAME; properties.put( SEQUENCE, sequenceName ); } super.configure( type, properties, dialect ); }
/** * If the parameters do not contain a {@link SequenceGenerator#SEQUENCE} * name, we assign one based on the table name. */ @Override public void configure(Type type, Properties params, Dialect dialect) throws MappingException { if (params.getProperty(SEQUENCE) == null || params.getProperty(SEQUENCE).length() == 0) { String tableName = params .getProperty(PersistentIdentifierGenerator.TABLE); if (tableName != null) { String seqName = "seq_" + tableName; params.setProperty(SEQUENCE, seqName); } } super.configure(type, params, dialect); } }
@Override public void configure( Type type, Properties properties, Dialect dialect ) throws MappingException { String defaultSeqValue = "hibernate_sequence"; String sequenceName = ConfigurationHelper.getString(SEQUENCE, properties, defaultSeqValue); // use "intact_ac" only if the default sequence name is provided if ( sequenceName.equals( defaultSeqValue ) ) { sequenceName = INTACT_AC_SEQUENCE_NAME; properties.put( SEQUENCE, sequenceName ); } super.configure( type, properties, dialect ); }
@Override public void configure(Type type, Properties params, Dialect dialect) throws MappingException { String tableName = params.getProperty(PersistentIdentifierGenerator.TABLE); String columnName = params.getProperty(PersistentIdentifierGenerator.PK); if (tableName != null && columnName != null) { StringBuilder sequenceNameBuilder = new StringBuilder(); sequenceNameBuilder.append(tableName); sequenceNameBuilder.append(SEQUENCE_NAME_SEPARATOR); sequenceNameBuilder.append(columnName); sequenceNameBuilder.append(SEQUENCE_NAME_SEPARATOR); sequenceNameBuilder.append(SEQUENCE_NAME_SUFFIX); params.setProperty(SEQUENCE, sequenceNameBuilder.toString()); } super.configure(type, params, dialect); }
public void configure(Type type, Properties params, Dialect d) throws MappingException { super.configure(type, params, d); maxLo = PropertiesHelper.getInt(MAX_LO, params, 9); lo = maxLo + 1; // so we "clock over" on the first invocation returnClass = type.getReturnedClass(); }
public void configure(Type type, Properties params, Dialect d) throws MappingException { super.configure(type, params, d); maxLo = PropertiesHelper.getInt(MAX_LO, params, 9); lo = maxLo + 1; // so we "clock over" on the first invocation returnClass = type.getReturnedClass(); }
public void configure(Type type, Properties params, Dialect d) throws MappingException { super.configure(type, params, d); maxLo = ConfigurationHelper.getInt( MAX_LO, params, 9 ); if ( maxLo >= 1 ) { hiloOptimizer = new OptimizerFactory.LegacyHiLoAlgorithmOptimizer( getIdentifierType().getReturnedClass(), maxLo ); } }
@Override public void configure(JavaTypeDescriptor javaTypeDescriptor, Properties params, ServiceRegistry serviceRegistry) throws MappingException { super.configure( javaTypeDescriptor, params, serviceRegistry ); maxLo = ConfigurationHelper.getInt( MAX_LO, params, 9 ); if ( maxLo >= 1 ) { hiloOptimizer = new LegacyHiLoAlgorithmOptimizer( getIdentifierType().getJavaType(), maxLo ); } }
public void configure(Type type, Properties params, Dialect d) throws MappingException { super.configure(type, params, d); maxLo = ConfigurationHelper.getInt( MAX_LO, params, 9 ); if ( maxLo >= 1 ) { hiloOptimizer = new OptimizerFactory.LegacyHiLoAlgorithmOptimizer( getIdentifierType().getReturnedClass(), maxLo ); } }