|
With declaration as: public class Tagdefinition implements Serializable { @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "idtagdefinitionparent") private Tagdefinition idtagdefinitionparent;
@OneToMany(mappedBy = "idtagdefinitionparent", fetch = FetchType.LAZY) @Where(clause = "deleted=0") private List<Tagdefinition> children = new ArrayList<Tagdefinition>();
public List<Tagdefinition> getChildren() { return children; }
}
Files are instrumented by javaassist.
The problem is that if first i call getChildren().size() it return me for example value of 1. And after this call getChildren() and try to iterate it return empty collection.
The problem is only in 5.0.2. 5.0.1 work ok.
|