Skip to content

Commit

Permalink
HHH-19011 fix incorrect placement of table comment with @comment
Browse files Browse the repository at this point in the history
This annotation is deprecated in 7, but I guess this is a candidate for backport
  • Loading branch information
gavinking authored and beikov committed Jan 16, 2025
1 parent b0746b8 commit 38d4fe6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void bind(Comment comment, MetadataBuildingContext context, PersistentCla
}
else if ( value instanceof Collection ) {
Collection collection = (Collection) value;
Table table = collection.getTable();
Table table = collection.getCollectionTable();
// by default, the comment goes on the table
if ( on.isEmpty() || table.getName().equalsIgnoreCase( on ) ) {
table.setComment( text );
Expand Down

0 comments on commit 38d4fe6

Please sign in to comment.