JPA TCK challenge
This commit is contained in:
parent
7c6b8cbd4e
commit
a7f1173e65
|
@ -38,7 +38,6 @@ public class JoinColumnTest extends BaseUnitTestCase {
|
|||
try (SessionFactoryImplementor sf = (SessionFactoryImplementor) new MetadataSources( ssr )
|
||||
.addAnnotatedClass( Company.class )
|
||||
.addAnnotatedClass( Location.class )
|
||||
.addResource( "org/hibernate/test/jpa/compliance/tck2_2/joincolumn/orm.xml" )
|
||||
.buildMetadata()
|
||||
.buildSessionFactory()) {
|
||||
try {
|
||||
|
|
|
@ -1,31 +0,0 @@
|
|||
<?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
|
||||
-->
|
||||
<entity-mappings xmlns="http://xmlns.jcp.org/xml/ns/persistence/orm"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence/orm
|
||||
http://xmlns.jcp.org/xml/ns/persistence/orm_2_1.xsd"
|
||||
version="2.1">
|
||||
<entity class="org.hibernate.test.jpa.compliance.tck2_2.joincolumn.Company">
|
||||
<attributes>
|
||||
<one-to-many name="locations" mapped-by="company">
|
||||
<cascade>
|
||||
<cascade-persist/>
|
||||
</cascade>
|
||||
</one-to-many>
|
||||
</attributes>
|
||||
</entity>
|
||||
<entity class="org.hibernate.test.jpa.compliance.tck2_2.joincolumn.Location">
|
||||
<attributes>
|
||||
<many-to-one name="company">
|
||||
<join-column name="COMP_ID" referenced-column-name="ID" nullable="false" />
|
||||
</many-to-one>
|
||||
</attributes>
|
||||
</entity>
|
||||
</entity-mappings>
|
||||
|
||||
|
Loading…
Reference in New Issue