-->
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.  [ 6 posts ] 
Author Message
 Post subject: where is OnDeleteAction.SETNULL ?
PostPosted: Tue Aug 23, 2005 4:21 pm 
Newbie

Joined: Thu Aug 18, 2005 12:24 pm
Posts: 11
Hibernate version: 3.1

Hi, Im trying to use ON DELETE SET NULL integrity restriction but it doesnt exists on annotation OnDeleteAction!
How to do this?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 23, 2005 5:37 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
This feature does not exist, but you can provide a patch.

_________________
Emmanuel


Top
 Profile  
 
 Post subject: How to provide a patch?
PostPosted: Tue Aug 23, 2005 7:24 pm 
Newbie

Joined: Thu Aug 18, 2005 12:24 pm
Posts: 11
Hi!
First of all I would like to thank you a lot for your help.. ;) Thanks!

OnDeleteAction.SETNULL really doesnt exist, but I can provide a patch... how can I do this?
I understand that hibernate can only deal with some pre-defined annotations.. is there a way to add annotations to it and to program the way it handle those annotations?

Thank you very much!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 24, 2005 5:24 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
You have to download Hibernate Annotation source code plus Hibernate 3 source code from sourceforge and update both. Hibernate does not handle SETNULL action at all currently.

_________________
Emmanuel


Top
 Profile  
 
 Post subject: OnDeleteAction.SETNULL feature
PostPosted: Wed Aug 24, 2005 12:48 pm 
Newbie

Joined: Thu Aug 18, 2005 12:24 pm
Posts: 11
Hi emmanuel, thank you again for your help...
Im still a hibernate newbye - I've been studying it for the last 3 weeks only - and I dont feel totally confortable with the idea of building a patch to it... but I would like to know if you think this 'OnDeleteAction.SETNULL' feature is really important ( because from my point of view it is ) and if it is going to be supported by hibernate on a future version...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 25, 2005 7:37 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I never liked those DB tricks. They break the 1st and second level cache consistency.

_________________
Emmanuel


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