[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Problems with Postgres, Persistence, and large objects
andydale
do-not-reply at jboss.com
Wed Jul 26 10:18:04 EDT 2006
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
More information about the jboss-user
mailing list