-->
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: Skipping an specific @ManyToMany on delete
PostPosted: Mon Nov 22, 2010 9:21 am 
Newbie

Joined: Fri Jan 23, 2004 3:37 pm
Posts: 14
Hi.
I have an specific @ManyToMany collection mapped to a view, and I'd like it to be skipped when removing the owner entity.
Here's an example: an user has several roles. The roles collection is a database view. When removing the user, hibernate tries the 'delete from user_roles where user_id = ?', but as it's a view, the database throws an error.
Is there a way to annotate this relationship, so that hibernate does not try to remove elements on it?


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.