This might be a stupid question, but I can't seem to find the answer to it. I'm fairly new to JBoss/Hibernate/EJB3.0, but I have a good deal of experience using TopLink. I have a collection of entity objects contained in another entity object. When I remove an entity from the collection (via a method on the owning entity) I would like to remove it from the datastore - how do I go about it? Do I need to get a handle to the EntityManager and call remove()? If so, what is the best way to get a handle to the EntityManager inside an Entity Bean?
TopLink has a setting called 'Private Owned', which would automatically delete an object if you removed it from the owning entity's collection. I see that Hibernate does this for simple collections (Strings and the like), but not for Entity collections. Thanks for any help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3912209#3912209 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3912209 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
