session « MySQL « JPA Q&A





1. Problem in creating session after the wait_timeout of mysql    stackoverflow.com

I am using hibernate 3 and mysql 5.1.When I am connecting it to database after it crosses the wait_timeout of mysql I am unable to create the new session.It gave me ...

2. Oracle dialect fetches more data than MySQL on Session.get    forum.hibernate.org

I work on an application that, thanks to Hibernate, supports multiple database systems. I am having a problem with the Oracle dialect (I tried Oracle10gDialect, Oracle9Dialect and OracleDialect, all with the same result) that causes serious performance issues in our application. The issue is that the same code causes significantly different queries to fetch entities from the database (using Session.get()) when ...

3. Stale data in session on MySQL    forum.hibernate.org

We've got a problem with stale data in session. We islolated example code - in short it's doing this: Opens 2 sessions at start. In 1st session display actual count of persisted objects, starts transaction and save new object into database. Then in 2nd session(!) displays actual count again. Problem is that 2nd session doesn't see changes made by 1st session ...