[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: lazily initialize collections in their getters

jaikiran do-not-reply at jboss.com
Wed Aug 6 05:23:05 EDT 2008


I might be missing something here, but isn't the following approach simpler?


   private java.util.Set<MyEntity> myEntities = new HashSet<MyEntity>();
  | 
  |    public java.util.Set<MyEntity> getMyEntities() {
  |       return myEntities;
  | 
  |    }	

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

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



More information about the jboss-user mailing list