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 committed Jan 6, 2025
1 parent 55455c6 commit cc7f705
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void bind(Comment comment, MetadataBuildingContext context, PersistentCla
+ "' was annotated '@Comment'");
}
else if ( value instanceof Collection collection ) {
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 cc7f705

Please # to comment.