Skip to content

Commit 1c90c93

Browse files
committed
HHH-19542: explicitly set table name to empty string if not provided.
1 parent bdbfa5f commit 1c90c93

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

hibernate-core/src/main/java/org/hibernate/boot/model/internal/ComponentPropertyHolder.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,12 @@ public void addProperty(Property property, MemberDetails attributeMemberDetails,
255255
// columns to check the consistency after all properties are set.
256256
if ( columns != null ) {
257257
for ( AnnotatedColumn column : columns.getColumns() ) {
258+
// The following has to be added otherwise every single
259+
// property must be annotated with @Column
260+
// Can be removed in version where the binder is stricter
261+
if ( column.getExplicitTableName() == null ) {
262+
column.setExplicitTableName( "" );
263+
}
258264
this.annotatedColumns.addColumn( column );
259265
}
260266
}

0 commit comments

Comments
 (0)