Skip to content

Commit bd0892a

Browse files
committed
HHH-8831 changed exception type, formatting
1 parent f8d853b commit bd0892a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

hibernate-core/src/main/java/org/hibernate/cfg/annotations/CollectionBinder.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1451,8 +1451,9 @@ private static void bindCollectionSecondPass(
14511451
BinderHelper.createSyntheticPropertyReference(
14521452
joinColumns, collValue.getOwner(), collectionEntity, collValue, false, mappings
14531453
);
1454-
} catch(RecoverableException ex) {
1455-
throw new RecoverableException("Unable to map collection property " + property.getName() + "of class " + collectionEntity.getClassName(), ex);
1454+
}
1455+
catch (AnnotationException ex) {
1456+
throw new AnnotationException( "Unable to map collection " + collectionEntity.getClassName() + "." + property.getName(), ex );
14561457
}
14571458
SimpleValue key = buildCollectionKey( collValue, joinColumns, cascadeDeleteEnabled, property, mappings );
14581459
if ( property.isAnnotationPresent( ElementCollection.class ) && joinColumns.length > 0 ) {

0 commit comments

Comments
 (0)