Author: bdaw
Date: 2008-09-12 02:12:59 -0400 (Fri, 12 Sep 2008)
New Revision: 85
Modified:
trunk/identity-impl/src/test/java/org/jboss/test/identity/impl/test/portal/JPAModelTestCase.java
Log:
tiny fix
Modified:
trunk/identity-impl/src/test/java/org/jboss/test/identity/impl/test/portal/JPAModelTestCase.java
===================================================================
---
trunk/identity-impl/src/test/java/org/jboss/test/identity/impl/test/portal/JPAModelTestCase.java 2008-09-11
22:01:24 UTC (rev 84)
+++
trunk/identity-impl/src/test/java/org/jboss/test/identity/impl/test/portal/JPAModelTestCase.java 2008-09-12
06:12:59 UTC (rev 85)
@@ -252,11 +252,10 @@
JPAIdentityObject user2 = new JPAIdentityObject("user2", userType);
em.persist(user2);
- em.getTransaction().commit();
+ em.flush();
try
{
- em.getTransaction().begin();
JPAIdentityObject user3 = new JPAIdentityObject("user2",
userType);
em.persist(user3);
@@ -285,12 +284,11 @@
JPAIdentityObject group2 = new JPAIdentityObject("group2",
groupType);
em.persist(group2);
- em.getTransaction().commit();
+ em.flush();
try
{
- em.getTransaction().begin();
-
+
JPAIdentityObject group3 = new JPAIdentityObject("group2",
groupType);
em.persist(group3);
Show replies by date