java - Hibernate - Parent - Child relation -
working on relation child/parent i've got "problems" on performance
everything working it's slow me, data faster.
table
id parent_id name
java
public class entity { @manytoone(fetch = fetchtype.lazy) @joincolumn(name = "parent_id") private entity parent; @onetomany(mappedby = "parent", fetch = fetchtype.lazy) private list<entity> children; }
any idea incease ?
edit: know if existing way hibernate ? use index on table
the query auto generated hibernate
Comments
Post a Comment