[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: JPA query.getSingleResult throws java.lang.IllegalStateE

motte79 do-not-reply at jboss.com
Mon Sep 24 10:34:23 EDT 2007



  |  q.setFlushMode(FlushModeType.COMMIT);
  | 

solved this problem ... i'm processing a Set of different labels, therefore the merged data need not to be flushed before processing the next query (it does not affect the results).

Just for those who are interested in the solution .... 

see http://java.sun.com/javaee/5/docs/api/javax/persistence/FlushModeType.html for details ... 

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087959



More information about the jboss-user mailing list