Skip to content

Commit

Permalink
fix bad assumption
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuir committed Jul 29, 2010
1 parent 562d55d commit 01301da
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Expand Up @@ -46,7 +46,7 @@ public static boolean checkEntityManager(EntityManager entityManager)
{
if (entityManager != null)
{
return entityManager.isOpen();
return !entityManager.contains(new Foo());
}
else
{
Expand Down
@@ -0,0 +1,14 @@
package org.jboss.weld.tests.builtinBeans.ee;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

@Entity
public class Foo
{

@Id @GeneratedValue
private int id;

}

0 comments on commit 01301da

Please sign in to comment.