Regular |
 |
Joined: Fri Mar 04, 2005 1:33 pm Posts: 65 Location: U.K.
|
Hibernate version:
2.1
Hi
I am using read-only cache strategy for few reference tables I have. I open a session with flush mode as commit which while closing attempts to sync up with the database. In that process it tries to write the read-only object from the reference tables causing 'Attempt to write read only object' exception. Has anyone come across this scenario and resolved it ? As I wont know if I will be doing 'modify or read' operation, I always use flush mode as commit. Some task may consists of both read reference table and modify other tables
operations and hence can not really open flush mode as never.
Thanks
Ron
|
|