-->
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: @ManyToOne @Formula annotation without insertable=false?
PostPosted: Mon Jun 21, 2010 6:42 pm 
Regular
Regular

Joined: Tue Feb 19, 2008 6:05 pm
Posts: 82
In a ManyToOne annotation mapped using a Formula column, how do we specify or enforce no updates and no inserts of the parent entity. This can be easily achievable with normal @JoinColumn annotation.

Are there ways to enforce no inserts/updates at all on some or all of the entities?

Thanks
Rama


Top
 Profile  
 
 Post subject: Re: @ManyToOne @Formula annotation without insertable=false?
PostPosted: Tue Jun 22, 2010 11:14 pm 
Regular
Regular

Joined: Tue Feb 19, 2008 6:05 pm
Posts: 82
3.5 seems to have a @JoinColumnOrFormulas that uses a combination of Column and Formula based joins with the parent table which were very easy using the properties option in the hbm.xml mapping file.

http://opensource.atlassian.com/project ... e/HHH-4479


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.