nutz-book-project icon indicating copy to clipboard operation
nutz-book-project copied to clipboard

Dao如何使用多级自关联

Open defaultw opened this issue 2 years ago • 0 comments

您好, 现在结构是 |- 文件夹1 |- 子文件夹 |- 子文件夹的子文件夹

这样的结构使用dao.fetchLinks(this.query(Xxx.class, Cnd.where("pId", "=", 0L)), "xx")只能查到两级,我需要怎么做才可以查到第三级或者更多层级的数据(这边层级是不确定的)。

defaultw avatar Aug 09 '22 05:08 defaultw