I have a bunch of JPA entites (witch Hibernate) called Nodes, with the following fields:
- NodeId
- ParentNodeId
- Active
The ParentNodeId refers to another Node, so I have a nice tree structure.
I've set the fetch type of Node to eager, so I get all the elements in the tree.
What I would like to do, is to filter the tree by Active property, that is get only those nodes, which has its Active field set to 1.
Is there an easy way to do this?
Thank, krisy