-->
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: newbie question : Does bulk delete cascade?
PostPosted: Tue Oct 04, 2005 5:22 am 
Newbie

Joined: Tue May 24, 2005 7:19 am
Posts: 7
Location: Ankara,Turkiye
Hibernate version: 3.1 beta 1

Name and version of the database you are using: Oracle 10G

I am trying to make a bulk delete using the hql query

delete DtaPlatform where recordType =:recType

DtaPlatform class has some one-to-one, some one-to-many and some many-to-one relations. When I try to execute this query Hibernate throws a ConstraintViolation exception from a one-to-one related class of DtaPlatform.
Dtaplatform has cascade=all for all relations in its mapping.

This makes me think that bulk delete does not cascade to sub-objects.
Is that true?

Thanks in advance.


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.