posted 14 years ago
I'm not sure if you friend's code will work.
You need to retrieve the persistent object first. If you use session.load(), you will only get a proxy object and thus no database hit will occur. Then use that proxy object to delete the instance.
SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog