JPA TCK challenge

This commit is contained in:
Steve Ebersole 2017-12-11 13:56:51 -06:00
parent 7c6b8cbd4e
commit a7f1173e65
2 changed files with 0 additions and 32 deletions

View File

@ -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 {

View File

@ -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>