From dd0547efdc768d9115398cfca0da5ecce5805ae7 Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Tue, 4 Aug 2015 15:26:48 -0500 Subject: [PATCH] HHH-10013 - Adjust default for hibernate.id.new_generator_mappings to true - checkstyle --- .../src/main/java/org/hibernate/id/SequenceGenerator.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/id/SequenceGenerator.java b/hibernate-core/src/main/java/org/hibernate/id/SequenceGenerator.java index 7b11024fb5..63a318f1cb 100644 --- a/hibernate-core/src/main/java/org/hibernate/id/SequenceGenerator.java +++ b/hibernate-core/src/main/java/org/hibernate/id/SequenceGenerator.java @@ -61,6 +61,7 @@ public class SequenceGenerator * @deprecated No longer supported. To specify initial-value or increment use the * org.hibernate.id.enhanced.SequenceStyleGenerator generator instead. */ + @Deprecated public static final String PARAMETERS = "parameters"; private QualifiedName logicalQualifiedSequenceName; @@ -87,7 +88,7 @@ public class SequenceGenerator identifierType = type; - final ObjectNameNormalizer normalizer = ( ObjectNameNormalizer ) params.get( IDENTIFIER_NORMALIZER ); + final ObjectNameNormalizer normalizer = (ObjectNameNormalizer) params.get( IDENTIFIER_NORMALIZER ); logicalQualifiedSequenceName = QualifiedNameParser.INSTANCE.parse( ConfigurationHelper.getString( SEQUENCE, params, "hibernate_sequence" ), normalizer.normalizeIdentifierQuoting( params.getProperty( CATALOG ) ), @@ -151,7 +152,7 @@ public class SequenceGenerator @Override public String[] sqlDropStrings(Dialect dialect) throws HibernateException { - return dialect.getDropSequenceStrings(sequenceName); + return dialect.getDropSequenceStrings( sequenceName ); } @Override