If you are using Oracle Database, then I think simply use the native query with "select * from myTable start with ... connect by prior ..." is much simpler and faster to query the tree.
[Message sent by forum member 'chesterxgchen123' (chesterxgchen123)]
http://forums.java.net/jive/thread.jspa?messageID=226208