[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: @Entitylisteners

motte1979 do-not-reply at jboss.com
Fri Aug 31 09:33:20 EDT 2007


Is there a better way than

  | Set<Bar> bars = new HashSet<Label>(foo.getBars());
  | foo.getBars().clear();
  | entityManager.merge(foo);
  | foo.setBars(bars);
  | entityManager.merge(foo);
  | 

?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079999#4079999

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4079999



More information about the jboss-user mailing list