I am still having this problem, but have been investigating it further. What i have found out is that if you call the EntityManager.find() method directly after you have just persisted the object in the same class then it manages to find the Entity in the database.
The problem starts to happen when the you call the EntityManager.find() from within another class with the same persistence context (using the same persistence unit), it seems to return null 99.99% of the time. I have no idea if this due to the database being used as it works with a Hypersonic data source but not with postgres. Andy View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960995#3960995 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960995 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
