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: Check for referring children when deleting an entity
PostPosted: Tue Jul 22, 2008 4:17 am 
Newbie

Joined: Thu Mar 22, 2007 6:36 am
Posts: 7
Hibernate version: 3.2.6.ga

Hi,
in many part of my application I need to check if an entity has referring children without cascade delete before remove it, but doing all these check manually require a lot of code (also because not all parent-child association are mapped on both associations ends), so I was looking for a way to do these checks automatically with hibernate without use integrity constraing on DB.

I was thinking to use some sort of Interceptor technique, but i was worrying if there is a better and simpler way to achieve the same result.

Someone can help me?

Thanks!
Luca.


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.