0 Replies Latest reply on Jan 27, 2008 2:40 AM by Hussein Baghdadi

    Would this work instead of Hibernate.initialize()?

    Hussein Baghdadi Novice

      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.