Do not use the anti-patterns session-per-user-session or session-per-application there are, however, rare exceptions to this rule. In other words, the code that executes Hibernate calls in the persistence layer, and the code that handles RuntimeException and usually can only clean up and exit , are in different layers. Have a question about this project? This conceptually only works if Hibernate can compare the old and the new state i. This can result in an increased rate of serialization failures.
nest...