Hi all,
I've a problem mapping objects in Hibernate. The problem is that when I
mapped a List on a object the result is multiplied as size of array.
Example:
public class ClassThatContainsList{
@OneToMany(mappedBy="classThatContainsLis",fetch=FetchType.EAGER,cascade={CascadeType.ALL})
private List<AObject> objectsList;
}
public class AObject{
@ManyToOne
private ClassThatContainsList classThatContainsList;
}
When I get a object of type ClassThatContainsList the result is multiplied
as size of array.
I don't want do the relation LAZY because the performance is low.
What I can do?