-->
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: How to properly annotate identifying One-To-Many relation?
PostPosted: Thu Oct 11, 2007 10:23 am 
Beginner
Beginner

Joined: Mon Aug 27, 2007 8:10 am
Posts: 37
Hibernate version: 3.2.5.ga

In our DB schema we have identifying One-To-Many relations, with slave tables containing foreign key as a part of primary key.

When we annotate slave collection with @OneToMany and delete items from collections, Hibernate issues UPDATE slave SET fk=null, which, of course, fails.

What annoation(s) we can use to make Hibernate issuing DELETE FROM instead of UPDATE SET NULL?


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.