HHH-2801 : changes so tests work on all tested dialects
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@14493 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
cb2d5fee72
commit
b3428358b7
|
@ -58,11 +58,9 @@
|
|||
</composite-id>
|
||||
<property name="name" column="NAME" type="string" length="40" not-null="true"/>
|
||||
<many-to-one column="USER_ID" name="user" class="org.hibernate.test.manytomanyassociationclass.User"
|
||||
not-null="true" unique-key="UK_MEMBERSHIP"
|
||||
insert="false" update="false"/>
|
||||
not-null="true" insert="false" update="false"/>
|
||||
<many-to-one column="GROUP_ID" name="group" class="org.hibernate.test.manytomanyassociationclass.Group"
|
||||
not-null="true" unique-key="UK_MEMBERSHIP"
|
||||
insert="false" update="false"/>
|
||||
not-null="true" insert="false" update="false"/>
|
||||
</class>
|
||||
|
||||
</hibernate-mapping>
|
||||
|
|
|
@ -69,6 +69,7 @@ public class ManyToManyAssociationClassGeneratedIdTest extends AbstractManyToMan
|
|||
// will be thrown on the insert because the unique constraint on the
|
||||
// user and group IDs in the join table is violated. See HHH-2801.
|
||||
s.merge( getUser() );
|
||||
s.getTransaction().commit();
|
||||
fail( "should have failed because inserts are before deletes");
|
||||
}
|
||||
catch( ConstraintViolationException ex ) {
|
||||
|
@ -95,6 +96,7 @@ public class ManyToManyAssociationClassGeneratedIdTest extends AbstractManyToMan
|
|||
// will be thrown on the insert because the unique constraint on the
|
||||
// user and group IDs in the join table is violated. See HHH-2801.
|
||||
s.merge( getUser() );
|
||||
s.getTransaction().commit();
|
||||
fail( "should have failed because inserts are before deletes");
|
||||
}
|
||||
catch( ConstraintViolationException ex ) {
|
||||
|
@ -121,6 +123,7 @@ public class ManyToManyAssociationClassGeneratedIdTest extends AbstractManyToMan
|
|||
// will be thrown on the insert because the unique constraint on the
|
||||
// user and group IDs in the join table is violated. See HHH-2801.
|
||||
s.merge( getUser() );
|
||||
s.getTransaction().commit();
|
||||
fail( "should have failed because inserts are before deletes");
|
||||
}
|
||||
catch( ConstraintViolationException ex ) {
|
||||
|
|
Loading…
Reference in New Issue