This content has been marked as final.
Show 2 replies
-
1. Re: JPA query.getSingleResult throws java.lang.IllegalStateE
motte1979 Sep 11, 2007 10:57 AM (in response to motte1979)Sorry, i forgot to post versions.
jboss-4.2.0 which uses
* hibernate-entitymanager-3.2.1.ga
* hibernate-annotations-3.2.1.ga
* hibernate-core-3.2.3.ga -
2. Re: JPA query.getSingleResult throws java.lang.IllegalStateE
motte1979 Sep 24, 2007 10:34 AM (in response to motte1979)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 ...