gavin wrote:
Actually, there are certain, VERY specific use cases where a single long session is acceptable. Its arguably acceptable if you want desktop application style semantics. The application is then responsible for explicitly refresh()ing things.
In this case, you can use saveOrUpdateCopy() to avoid the NUOE.
Gavin,
Do you have time too look at my issue? I think it's similair to this issue, but it's happening on a delete. Im using the ThreadLocal pattern from the documentation, as this will be a Tomcat hosted application. My issue is currently happening at the application facade level where I have all transactional scope.
Here's the original post.
http://forum.hibernate.org/viewtopic.php?t=933689