Chris Nokleberg wrote:
> [EMAIL PROTECTED] wrote:
>> But my big problem is: how do we know which _loaded_ objects were deleted?
>> I don't think there is any good way to do this. All we get back from DELETE
>> is a row count.
> 
> How about doing the mass delete, and then building a select statement to
> see which of the loaded objects do not exist anymore? i.e.
>   select id from foo where id not in (?, ?, ?, ...)

Obviously that query leaves something to be desired...the easiest way
would be to remove the "not" and then the ids you get back are the ones
that were not deleted...you can flush all of the other loaded objects of
the same type.

Chris




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to