These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: read-only cache strategy
PostPosted: Wed Jun 29, 2005 3:02 pm 
Regular
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.