-->
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: Sharing and dynamically changing the mapping config
PostPosted: Fri Jul 16, 2004 12:00 pm 
Newbie

Joined: Fri Jul 16, 2004 11:41 am
Posts: 1
Hi,

The goal is ti share the same mapping file between two applicatons
where one application requires read-only access, and the other application requires the r/w access.
The application that requires read-only access would like to set few changes to the mapping file during initialization, specifically, the use of the hibernate
read-only cache (<cache usage="read-only"/> )and mutable="false" property.


I understand this is probably more an xml question, but was wandering if someone could point to some examples or provide direction.


Using Version 2.1.4


Tanks,
Emil


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 16, 2004 12:51 pm 
Newbie

Joined: Tue Jul 13, 2004 12:35 am
Posts: 2
Location: Berkeley, CA, USA
Seems like this would most easily be done through the Configuration class. Via setCacheConcurrencyStrategy(Class, ReadOnlyCache) and PersistentClass.addProperty(), I would think.

You could use XSLT, too.

_________________
Mike


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.