Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

[jboss-user] [Persistence, JBoss/CMP, Hibernate,
 Database] - Hibernate doesn't reflect manual change to database

scott.stark@jboss.org

2007-06-19


I was messing around today and noticed that if I perform a manual INSERT into an entity table, then call
em.createQuery("from "+MyEntity.class.getName()).getResultList()
to get all entities, the list returned does not contain the entity I inserted manually.

I thought it might be a caching issue, so I set the cache provider to NoCacheProvider, but I still get the same behavior.

What's preventing Hibernate from getting the latest info from the database??

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055794#4055794

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055794
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.