HHH-10013 - Adjust default for hibernate.id.new_generator_mappings to true - checkstyle

This commit is contained in:
Steve Ebersole 2015-08-04 15:26:48 -05:00
parent b3a8453064
commit dd0547efdc
1 changed files with 3 additions and 2 deletions

View File

@ -61,6 +61,7 @@ public class SequenceGenerator
* @deprecated No longer supported. To specify initial-value or increment use the * @deprecated No longer supported. To specify initial-value or increment use the
* org.hibernate.id.enhanced.SequenceStyleGenerator generator instead. * org.hibernate.id.enhanced.SequenceStyleGenerator generator instead.
*/ */
@Deprecated
public static final String PARAMETERS = "parameters"; public static final String PARAMETERS = "parameters";
private QualifiedName logicalQualifiedSequenceName; private QualifiedName logicalQualifiedSequenceName;
@ -87,7 +88,7 @@ public class SequenceGenerator
identifierType = type; identifierType = type;
final ObjectNameNormalizer normalizer = ( ObjectNameNormalizer ) params.get( IDENTIFIER_NORMALIZER ); final ObjectNameNormalizer normalizer = (ObjectNameNormalizer) params.get( IDENTIFIER_NORMALIZER );
logicalQualifiedSequenceName = QualifiedNameParser.INSTANCE.parse( logicalQualifiedSequenceName = QualifiedNameParser.INSTANCE.parse(
ConfigurationHelper.getString( SEQUENCE, params, "hibernate_sequence" ), ConfigurationHelper.getString( SEQUENCE, params, "hibernate_sequence" ),
normalizer.normalizeIdentifierQuoting( params.getProperty( CATALOG ) ), normalizer.normalizeIdentifierQuoting( params.getProperty( CATALOG ) ),
@ -151,7 +152,7 @@ public class SequenceGenerator
@Override @Override
public String[] sqlDropStrings(Dialect dialect) throws HibernateException { public String[] sqlDropStrings(Dialect dialect) throws HibernateException {
return dialect.getDropSequenceStrings(sequenceName); return dialect.getDropSequenceStrings( sequenceName );
} }
@Override @Override