-->
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: Plans for cascade type of delete orphan in the EJB3 spec?
PostPosted: Wed Feb 22, 2006 4:15 pm 
Beginner
Beginner

Joined: Wed Nov 30, 2005 10:25 pm
Posts: 25
Out of curiosity, does anyone know if EJB3 is planning on supporting the hibernate delete orphan functionality?

When using EJB3 I'd rather not have to use hibernate annotations if I don't have to (seems more "pure" and more cross-platform).

Having the following is annoying:
Code:
  @OnDelete(action=OnDeleteAction.CASCADE)
  @OneToMany(cascade=CascadeType.ALL, mappedBy="property")
  @JoinColumn(name="folderId")
  @Cascade({org.hibernate.annotations.CascadeType.ALL,
    org.hibernate.annotations.CascadeType.DELETE_ORPHAN})


How does Sun recommend doing this? I tried a uni-directional one-to-many (no many-to-one), and hibernate tried to null my fk instead of deleting the child object.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 23, 2006 9:49 am 
Newbie

Joined: Tue Apr 26, 2005 10:45 am
Posts: 7
In the "Enterprise Java Beans 3.0, Early Draft 2" on page 32 is written:
Quote:
We are considering whether to add an option to cover the removal of orphaned entities involved in parent-child relationships.


So i guess this very important feature is still an open issue.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 01, 2006 11:10 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
it is not going to be in 3.0

_________________
Emmanuel


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.