What's wrong with the verification code? Give a plan? At least take a look at the implementation of the entrance method?
------------------------------Glue dividing line--------------------------
Last-term answer:
@Table ("T_menu") public class Menu {@Id//numeric primary key private int Id; @Name//character type primary key private String Name; @Column ("pid")//related fields should also be written out oh private int parentid; @Column ("CT") private long createtime; @Column ("UT") private long updatetime; @One (Target=menu.class, field= "ParentID")//field is the Java attribute name of this object, private Menu parentmenu; @Many (Target=menu.class, field= "ParentID")//private list<menu> submenus;}
Code to read
list<menu> top = DAO (). Query (Menu.class, Cnd.where ("ParentID", "=", 0)); top = DAO (). Fetchlinks (top, NULL); Single-layer fetchlinks Oh, need multilayer, self-encapsulation
Nutz, Come tonight. (13): What's wrong with the captcha?