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

enter image description here


Comments

Popular posts from this blog

php - Embed BBCode within itself not working -

three.js - how to load gltf in three JS -

sql server - T-SQL: Access DB objects in same schema without qualifying? -