javax.persistence.ElementCollection
has an attribute fetch which can be specified with two values either 'LAZY' or 'EAGER'//Load order lines eagerly
@Entity
public class Order {
@ElementCollection(fetch=EAGER)
protected List orderLines = new ArrayList<>();
}