>>How can I delete relation-ship between objects in many-to-many
relationship, without deleting objects themselves with Hibernate?<<


//foo and bar are associated with session
foo.getBars().remove(bar);
bar.getFoos().remove(foo);
session.flush();




-------------------------------------------------------
This SF.NET email is sponsored by: Take your first step towards giving 
your online business a competitive advantage. Test-drive a Thawte SSL 
certificate - our easy online guide will show you how. Click here to get 
started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to