From 367d331fd70bbc3aa2ffd9fde3586e16a982f45c Mon Sep 17 00:00:00 2001 From: brmeyer Date: Tue, 30 Oct 2012 16:50:10 -0400 Subject: [PATCH] HHH-7743 @TableGenerator attributes handled using incorrect types --- .../annotations/IdentifierGeneratorExtractionDelegate.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/IdentifierGeneratorExtractionDelegate.java b/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/IdentifierGeneratorExtractionDelegate.java index 60fdaa7dbf..430194ce5b 100644 --- a/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/IdentifierGeneratorExtractionDelegate.java +++ b/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/IdentifierGeneratorExtractionDelegate.java @@ -188,12 +188,12 @@ public class IdentifierGeneratorExtractionDelegate { parameterMap.put( TableGenerator.INCREMENT_PARAM, - String.valueOf( JandexHelper.getValue( generatorAnnotation, "allocationSize", String.class ) ) + String.valueOf( JandexHelper.getValue( generatorAnnotation, "allocationSize", Integer.class ) ) ); parameterMap.put( TableGenerator.INITIAL_PARAM, - String.valueOf( JandexHelper.getValue( generatorAnnotation, "initialValue", String.class ) + 1 ) + String.valueOf( JandexHelper.getValue( generatorAnnotation, "initialValue", Integer.class ) + 1 ) ); } else {