-->
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: <sql-delete>
PostPosted: Thu Jun 07, 2007 7:08 am 
Newbie

Joined: Thu Jun 07, 2007 5:55 am
Posts: 1
Hi,

I am using Custom SQL as explained in section 16.3 of hibernate reference. In particular I have set up an <sql-delete>:
<sql-delete>DELETE FROM PERSON WHERE status='EXPIRED'</sql-delete>

I have a number of issues:

1. when I hit delete the custom sql is not being invoked (the normal delete is being called instead). I expected the cutom delete to be called when dlete an object.

2. I would like to disable (overwrite) this cutom SQL in some cases. The reference doesn't explain how this can be done.

I would be very grateful for any clues.

Thanks.

Regards,

Mugoma


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.