Skip to content

Commit 38d4fe6

Browse files
gavinkingbeikov
authored andcommitted
HHH-19011 fix incorrect placement of table comment with @comment
This annotation is deprecated in 7, but I guess this is a candidate for backport
1 parent b0746b8 commit 38d4fe6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hibernate-core/src/main/java/org/hibernate/binder/internal/CommentBinder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public void bind(Comment comment, MetadataBuildingContext context, PersistentCla
3838
}
3939
else if ( value instanceof Collection ) {
4040
Collection collection = (Collection) value;
41-
Table table = collection.getTable();
41+
Table table = collection.getCollectionTable();
4242
// by default, the comment goes on the table
4343
if ( on.isEmpty() || table.getName().equalsIgnoreCase( on ) ) {
4444
table.setComment( text );

0 commit comments

Comments
 (0)