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.  [ 3 posts ] 
Author Message
 Post subject: Specify a Table as Read-Only in the hbm config file?
PostPosted: Fri Feb 16, 2007 5:33 pm 
Beginner
Beginner

Joined: Wed Apr 05, 2006 8:16 pm
Posts: 20
Hi,

This is kind of a newbie configuration question. Is there a way to specify a table as read-only at the hbm level, so that table won't try to participate in save events? Or to specify cascade="read" or something so that a table referenced by a HBM file is only interacted with on reads? Just if possible.

I'm kind of learning as I'm going here, and our project would really benefit if someone could give me this kind of an entry level pointer, if possible. Thanks!,

Jim Bender


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 16, 2007 6:02 pm 
Regular
Regular

Joined: Sun Sep 17, 2006 2:48 am
Posts: 81
Location: California
In the class definition specify mutable="false" like below

<class ... mutable="false" />

Thanks


Top
 Profile  
 
 Post subject: Thank you thank you ! :)
PostPosted: Fri Feb 16, 2007 6:05 pm 
Beginner
Beginner

Joined: Wed Apr 05, 2006 8:16 pm
Posts: 20
That did exactly what I needed it to! Thanks :),

Jim


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.