[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Would this work instead of Hibernate.initialize()?

hubaghdadi do-not-reply at jboss.com
Sun Jan 27 02:40:44 EST 2008


Hi.
The relationship between Team and Player entities is one-to-many.
Inside a transaction, to fully initialize the player side we could use:
Hibernate.initialize(team.getPlayers());
Well, why not just use:
team.getPlayers();
?
Thanks.

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

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



More information about the jboss-user mailing list