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 7c58fe9a16
commit 62c17f1a51
419 changed files with 157 additions and 159 deletions

View File

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

View File

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

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