HHH-17616 - Move resources that were still in src/java to src/resources (hibernate-core)

Signed-off-by: Jan Schatteman <jschatte@redhat.com>
This commit is contained in:
Jan Schatteman 2024-01-05 22:02:55 +01:00 committed by Christian Beikov
parent 8e5f847201
commit c9f79733bc
419 changed files with 157 additions and 159 deletions

View File

@ -109,10 +109,8 @@ sourceSets {
}
}
// resources inherently exclude sources
test {
resources {
srcDir 'src/test/java'
srcDir 'src/test/resources'
srcDir 'src/test/bundles'
}

View File

@ -1,58 +1,58 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Hibernate, Relational Persistence for Idiomatic Java
~
~ License: GNU Lesser General Public License (LGPL), version 2.1 or later.
~ See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
-->
<hibernate-mapping xmlns="http://www.hibernate.org/xsd/hibernate-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.hibernate.org/xsd/hibernate-mapping
http://www.hibernate.org/xsd/hibernate-mapping/hibernate-mapping-4.0.xsd">
<class entity-name="ItemBase" abstract="true">
<tuplizer entity-mode="dynamic-map" class="org.hibernate.tuple.entity.DynamicMapEntityTuplizer"/>
<id name="id" type="integer" column="id" length="16">
<generator class="increment" />
</id>
<property name="name" type="string" column="name" length="50" not-null="true" />
<property name="description" type="string" column="description" length="200" />
</class>
<union-subclass entity-name="Item1" table="item_1" extends="ItemBase">
<tuplizer entity-mode="dynamic-map" class="org.hibernate.tuple.entity.DynamicMapEntityTuplizer"/>
<property name="prop1" type="int" column="prop1" />
<many-to-one name="entity" entity-name="Entity1" column="entity_id" fetch="select"/>
</union-subclass>
<union-subclass entity-name="Item2" table="item_2" extends="ItemBase">
<tuplizer entity-mode="dynamic-map" class="org.hibernate.tuple.entity.DynamicMapEntityTuplizer"/>
<property name="prop2" type="string" column="prop2" length="100" />
<many-to-one name="entity" entity-name="Entity2" column="entity_id" fetch="select" not-null="true" />
</union-subclass>
<class entity-name="Entity1" table="entity_1">
<tuplizer entity-mode="dynamic-map" class="org.hibernate.tuple.entity.DynamicMapEntityTuplizer"/>
<id name="id" type="integer" column="id" length="16">
<generator class="increment" />
</id>
<property name="name" type="string" column="name" length="50" not-null="true" />
<set name="items" fetch="select" lazy="true" inverse="true">
<key column="entity_id" not-null="true" />
<one-to-many entity-name="Item1"/>
</set>
</class>
<class entity-name="Entity2" table="entity_2">
<tuplizer entity-mode="dynamic-map" class="org.hibernate.tuple.entity.DynamicMapEntityTuplizer"/>
<id name="id" type="integer" column="id" length="16">
<generator class="increment" />
</id>
<property name="name" type="nstring" column="name" length="50" not-null="true" />
<set name="items" fetch="select" lazy="true" inverse="true">
<key column="entity_id" not-null="true" />
<one-to-many entity-name="Item2"/>
</set>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Hibernate, Relational Persistence for Idiomatic Java
~
~ License: GNU Lesser General Public License (LGPL), version 2.1 or later.
~ See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
-->
<hibernate-mapping xmlns="http://www.hibernate.org/xsd/hibernate-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.hibernate.org/xsd/hibernate-mapping
http://www.hibernate.org/xsd/hibernate-mapping/hibernate-mapping-4.0.xsd">
<class entity-name="ItemBase" abstract="true">
<tuplizer entity-mode="dynamic-map" class="org.hibernate.tuple.entity.DynamicMapEntityTuplizer"/>
<id name="id" type="integer" column="id" length="16">
<generator class="increment" />
</id>
<property name="name" type="string" column="name" length="50" not-null="true" />
<property name="description" type="string" column="description" length="200" />
</class>
<union-subclass entity-name="Item1" table="item_1" extends="ItemBase">
<tuplizer entity-mode="dynamic-map" class="org.hibernate.tuple.entity.DynamicMapEntityTuplizer"/>
<property name="prop1" type="int" column="prop1" />
<many-to-one name="entity" entity-name="Entity1" column="entity_id" fetch="select"/>
</union-subclass>
<union-subclass entity-name="Item2" table="item_2" extends="ItemBase">
<tuplizer entity-mode="dynamic-map" class="org.hibernate.tuple.entity.DynamicMapEntityTuplizer"/>
<property name="prop2" type="string" column="prop2" length="100" />
<many-to-one name="entity" entity-name="Entity2" column="entity_id" fetch="select" not-null="true" />
</union-subclass>
<class entity-name="Entity1" table="entity_1">
<tuplizer entity-mode="dynamic-map" class="org.hibernate.tuple.entity.DynamicMapEntityTuplizer"/>
<id name="id" type="integer" column="id" length="16">
<generator class="increment" />
</id>
<property name="name" type="string" column="name" length="50" not-null="true" />
<set name="items" fetch="select" lazy="true" inverse="true">
<key column="entity_id" not-null="true" />
<one-to-many entity-name="Item1"/>
</set>
</class>
<class entity-name="Entity2" table="entity_2">
<tuplizer entity-mode="dynamic-map" class="org.hibernate.tuple.entity.DynamicMapEntityTuplizer"/>
<id name="id" type="integer" column="id" length="16">
<generator class="increment" />
</id>
<property name="name" type="nstring" column="name" length="50" not-null="true" />
<set name="items" fetch="select" lazy="true" inverse="true">
<key column="entity_id" not-null="true" />
<one-to-many entity-name="Item2"/>
</set>
</class>
</hibernate-mapping>

Some files were not shown because too many files have changed in this diff Show More