HHH-15265 Test that default catalog/schema are taken into account in generated DDL comments

This commit is contained in:
Yoann Rodière 2022-05-13 10:21:05 +02:00 committed by Christian Beikov
parent 3aada57305
commit de4439ca0c
2 changed files with 22 additions and 4 deletions

View File

@ -11,7 +11,16 @@
package="org.hibernate.orm.test.boot.database.qualfiedTableNaming"
catalog="someImplicitFileLevelCatalog" schema="someImplicitFileLevelSchema" default-access="field">
<class name="DefaultCatalogAndSchemaTest$EntityWithHbmXmlImplicitFileLevelQualifiers" entity-name="EntityWithHbmXmlImplicitFileLevelQualifiers">
<id name="id" />
<property name="basic" />
<comment>Some entity-level comment</comment>
<id name="id">
<column name="id">
<comment>Some column-level comment for "id"</comment>
</column>
</id>
<property name="basic">
<column name="basic">
<comment>Some column-level comment for "property"</comment>
</column>
</property>
</class>
</hibernate-mapping>

View File

@ -11,7 +11,16 @@
package="org.hibernate.orm.test.boot.database.qualfiedTableNaming"
default-access="field">
<class name="DefaultCatalogAndSchemaTest$EntityWithHbmXmlNoFileLevelQualifiers" entity-name="EntityWithHbmXmlNoFileLevelQualifiers">
<id name="id" />
<property name="basic" />
<comment>Some entity-level comment</comment>
<id name="id">
<column name="id">
<comment>Some column-level comment for "id"</comment>
</column>
</id>
<property name="basic">
<column name="basic">
<comment>Some column-level comment for "property"</comment>
</column>
</property>
</class>
</hibernate-mapping>