@@ -0,0 +1,1644 @@
+package com.athena.dolly.controller.web.user;%0A%0Aimport java.util.List;%0A%0Aimport javax.persistence.Column;%0Aimport javax.persistence.Entity;%0Aimport javax.persistence.FetchType;%0Aimport javax.persistence.Id;%0Aimport javax.persistence.OneToMany;%0Aimport javax.persistence.Table;%0A%0Aimport com.fasterxml.jackson.annotation.JsonBackReference;%0A%0A@Entity%0A@Table(name = %22menu%22)%0Apublic class Menu %7B%0A%09@Id%0A%09@Column(name = %22Id%22)%0A%09private int Id;%0A%09@Column(name = %22text%22)%0A%09private String text;%0A%09@Column(name = %22is_read%22)%0A%09private boolean isRead;%0A%09@Column(name = %22is_write%22)%0A%09private boolean isWrite;%0A%0A%09@Column(name = %22is_leaf%22)%0A%09private boolean isLeaf;%0A%09@Column(name = %22parent_menu_id%22)%0A%09private int parentMenuId;%0A%0A%09@OneToMany(mappedBy = %22menu%22, fetch = FetchType.LAZY)%0A%09@JsonBackReference%0A%09private List%3CUserRole%3E userRoles;%0A%0A%09public boolean isWrite() %7B%0A%09%09return isWrite;%0A%09%7D%0A%0A%09public void setWrite(boolean isWrite) %7B%0A%09%09this.isWrite = isWrite;%0A%09%7D%0A%0A%09public boolean isRead() %7B%0A%09%09return isRead;%0A%09%7D%0A%0A%09public void setRead(boolean isRead) %7B%0A%09%09this.isRead = isRead;%0A%09%7D%0A%0A%09public String getText() %7B%0A%09%09return text;%0A%09%7D%0A%0A%09public void setText(String text) %7B%0A%09%09this.text = text;%0A%09%7D%0A%0A%09public int getId() %7B%0A%09%09return Id;%0A%09%7D%0A%0A%09public void setId(int id) %7B%0A%09%09Id = id;%0A%09%7D%0A%0A%09public List%3CUserRole%3E getUserRoles() %7B%0A%09%09return userRoles;%0A%09%7D%0A%0A%09public void setUserRoles(List%3CUserRole%3E userRoles) %7B%0A%09%09this.userRoles = userRoles;%0A%09%7D%0A%0A%09public boolean isLeaf() %7B%0A%09%09return isLeaf;%0A%09%7D%0A%0A%09public void setLeaf(boolean isLeaf) %7B%0A%09%09this.isLeaf = isLeaf;%0A%09%7D%0A%0A%09public int getParentMenuId() %7B%0A%09%09return parentMenuId;%0A%09%7D%0A%0A%09public void setParentMenuId(int parentMenuId) %7B%0A%09%09this.parentMenuId = parentMenuId;%0A%09%7D%0A%7D%0A

Add menu object to database.