Entities using the annotations @GeneratedValue, @GenericGenerator }}and {{@SecondaryTable }}that have a table name not following the standard format of {{"schema.catalog.tableName" cannot be parsed regardless of physical-strategy property. Example table name:com.proj.db::base.folder. Adding quotes does not fix the issue. This issues has appeared in versions later that 6.1.3 (last version without the issue). Example Entity:
Stack Trace:
Additional Notes: From what I can tell looking in the hibernate code the issue comes from org.hibernate.dialect.temptable.TemporaryTable }}constructor, which from version {{6.1.4 has changed the way it parses the table name to use QualifiedNameParser }}which restricts the acceptable table names to the previously mentioned format: {{"schema.catalog.tableName". Also this seems to ignore the physical naming strategy property. This is a breaking change for our projects and probably many others. Links: Reported at: https://discourse.hibernate.org/t/hibernate-6-issues-with-table-name/7763 PR to reproduce the issue: https://github.com/hibernate/hibernate-test-case-templates/pull/276 |