- class System_menu {
- String name; //名字
- String description; //描述
- System_menu parent; //父节点
- static hasMany = [childrens:System_menu];
- static mapping = {
- parent:[column:'parent_Id',lazy:"true",cascade:"none"]
- }
- static constraints = {
- parent(nullable:true)
- }
- }