I'm using the Play Framework with Hibernate and JPA.
I have a simple entity :
@Entity
public class Player extends Model {
@Required
public Long gold;
}
I would like to retrieve all my players, so here is the query I execute using Hibernate :
select p from Player p
The result has been stored in a list : List<Player> and when I want to debug to see what is in the list I can see 104 players, but only the 5 first players of the list are really loaded. Other players are lazy fetched : the class name is something like Player_$$_javassist_22.
My question is : why aren't all my players entirely loaded? Why some of them are lazy fetched? I would like to have all my players loaded without lazy fetching, how can I do?
Thank you