-->
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.  [ 3 posts ] 
Author Message
 Post subject: Class dependencies
PostPosted: Fri Mar 24, 2006 8:41 am 
Newbie

Joined: Thu Apr 22, 2004 12:59 pm
Posts: 10
Location: RS/Brazil
Hi. There is a way to get all class dependencies? I want to know what classes depends on other... I want to check, when removing an object, for foreign key dependencies... like .getDependencies(Class clazz) or even .canDeleteObject(Object o)

_________________
-
Marcos Vinicius Dufloth
Cyber, Ltda
Erechim - RS - Brasil


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 24, 2006 12:16 pm 
Regular
Regular

Joined: Wed Nov 17, 2004 11:49 am
Posts: 65
Location: Pittsburgh
why do you need this? Hibernate should be able to handle deleting the children (or nulling out the FK reference) if you are using cascades in your association mappings.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 24, 2006 1:34 pm 
Newbie

Joined: Thu Apr 22, 2004 12:59 pm
Posts: 10
Location: RS/Brazil
cause I don't want objects that have dependencies deleted. And even nulling fk references. My app must show an error saying that those object don't was deleted cause it have dependencies....

But I want my facade doing this before hit hibernate... So, when I remove an object, I have to check on my facade all dependencies... so boring... If I have one method that check all dependencies its more easy...

_________________
-
Marcos Vinicius Dufloth
Cyber, Ltda
Erechim - RS - Brasil


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.