-->
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.  [ 2 posts ] 
Author Message
 Post subject: setCacheConcurrencyStrategy on collections
PostPosted: Fri Dec 17, 2004 6:24 pm 
Regular
Regular

Joined: Fri Aug 29, 2003 12:48 pm
Posts: 63
Hibernate version: 2.1.6

What's the format of the collectionRole parameter of the method:

Code:
Configuration.setCacheConcurrencyStrategy(String collectionRole, CacheConcurrencyStrategy concurrencyStrategy)

?

I've got some classes and collections I want cached read-only in one context, but not in another. Rather than maintain two separate hibernate mappings for these classes, I simply modify the Configuration object programmatically. But I'm a little stymied on the collections bit and could find no examples in the archives. Thanks in advance for any help.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 17, 2004 10:27 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
FullClassName.propertyName


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

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.