From ad6f5ae53fe8a5afdd23ed69db87415c96853622 Mon Sep 17 00:00:00 2001 From: Strong Liu Date: Fri, 21 Dec 2012 15:02:32 +0800 Subject: [PATCH] HHH-7887 - use JandexHelper.getEnumValue to get a enum value --- .../annotations/attribute/PluralAssociationAttribute.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/attribute/PluralAssociationAttribute.java b/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/attribute/PluralAssociationAttribute.java index 6d6b5fbca2..a9bfb9e5f4 100644 --- a/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/attribute/PluralAssociationAttribute.java +++ b/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/attribute/PluralAssociationAttribute.java @@ -278,7 +278,7 @@ public class PluralAssociationAttribute extends AssociationAttribute { HibernateDotNames.ON_DELETE ); if ( onDeleteAnnotation != null ) { - action = JandexHelper.getValue( onDeleteAnnotation, "action", OnDeleteAction.class ); + action = JandexHelper.getEnumValue( onDeleteAnnotation, "action", OnDeleteAction.class ); } return action; }