So you have a relational database and you want to see what
Phone numbers, or
Accounts are associated with a
Person. By default, Java EE will only get the objects it absolutely needs; this is called lazy fetching. So solve this problem you want to fetch eagerly. In your code, find the attribute in your entity bean that you want to eagerly fetch and edit the attributes to indicate that it should eagerly fetch the information:
@OneToMany(mappedBy="person", fetch=FetchType.EAGER) private Set accounts;
@ManyToMany, etc. It will vary based on the circumstance.