-->
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.  [ 2 posts ] 
Author Message
 Post subject: Deleting child object
PostPosted: Wed May 10, 2006 10:51 am 
Newbie

Joined: Fri Dec 09, 2005 6:17 am
Posts: 7
Given the relationship below

public class A {
public B child = new B();
}

public class B {
}

how can I delete the object that child references without worrying about the reference in class A? Currently I get a constraint exception


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 11, 2006 4:25 am 
Expert
Expert

Joined: Sat Oct 25, 2003 8:49 am
Posts: 490
Location: Vrhnika, Slovenia
What has this got to do with EJB3?

Check 'inverse' attribute.


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