Eugen Paraschiv opened SPR-8959 and commented
Setting the readOnly flag to true when Spring is configured with JPA (JpaTransactionManager, LocalContainerEntityManagerFactoryBean) with Hibernate (3.6.8) as provider works fine. When migrating to Hibernate 4 (still with the same JPA configuration) the readOnly doesn't have any effect any more. After a bit of debugging it seems that, when the underlying connection is prepared, it no longer gets marked as read only, so no exception is thrown, which means that the operation is indeed executed.
This should be easy to test, but if needed I can provide a sample project.
I will also mention that I am using MySQL.
Affects: 3.1 GA
Issue Links:
Referenced from: commits 0280a2a, 5452144, 562916b, 8a5e47a, cbda722
2 votes, 10 watchers
Eugen Paraschiv opened SPR-8959 and commented
Setting the readOnly flag to true when Spring is configured with JPA (JpaTransactionManager, LocalContainerEntityManagerFactoryBean) with Hibernate (3.6.8) as provider works fine. When migrating to Hibernate 4 (still with the same JPA configuration) the readOnly doesn't have any effect any more. After a bit of debugging it seems that, when the underlying connection is prepared, it no longer gets marked as read only, so no exception is thrown, which means that the operation is indeed executed.
This should be easy to test, but if needed I can provide a sample project.
I will also mention that I am using MySQL.
Affects: 3.1 GA
Issue Links:
Referenced from: commits 0280a2a, 5452144, 562916b, 8a5e47a, cbda722
2 votes, 10 watchers