[jboss-cvs] JBossAS SVN: r81986 - projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/jacc.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Dec 2 16:47:34 EST 2008
Author: ALRubinger
Date: 2008-12-02 16:47:34 -0500 (Tue, 02 Dec 2008)
New Revision: 81986
Modified:
projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/jacc/StatelessBean.java
Log:
[EJBTHREE-1241] Clear up some Hibernate Exceptions to expose more Security Failures
Modified: projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/jacc/StatelessBean.java
===================================================================
--- projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/jacc/StatelessBean.java 2008-12-02 21:30:07 UTC (rev 81985)
+++ projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/jacc/StatelessBean.java 2008-12-02 21:47:34 UTC (rev 81986)
@@ -85,6 +85,10 @@
@PermitAll
public void deleteAllEntity(AllEntity e)
{
+ if (!em.contains(e))
+ {
+ e = em.merge(e);
+ }
em.remove(e);
}
@@ -113,13 +117,17 @@
@PermitAll
public void deleteStarEntity(StarEntity e)
{
+ if (!em.contains(e))
+ {
+ e = em.merge(e);
+ }
em.remove(e);
}
@PermitAll
public SomeEntity insertSomeEntity()
- {
+ {
SomeEntity e = new SomeEntity();
e.val = "x";
em.persist(e);
@@ -142,6 +150,10 @@
@PermitAll
public void deleteSomeEntity(SomeEntity e)
{
+ if (!em.contains(e))
+ {
+ e = em.merge(e);
+ }
em.remove(e);
}
}
More information about the jboss-cvs-commits
mailing list