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

    Would this work instead of Hibernate.initialize()?

    hubaghdadi

      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.