📄 menuentity.java
字号:
package com.ufmobile.common.role.entity;
import java.io.Serializable;
import java.math.BigDecimal;
@SuppressWarnings("serial")
@javax.persistence.Entity
@javax.persistence.Table(name = "TB_COMMON_MENU")
@javax.persistence.SequenceGenerator(name = "TB_COMMON_NEMU_SEQ", sequenceName = "S_COMMON_MENU", allocationSize = 25)
public class MenuEntity implements Serializable,Comparable {
private Long id;
/**
* Get the primary key.
*
* @return The primary key.
* @javax.persistence.Id(generate = javax.persistence.GeneratorType.AUTO)
*/
@javax.persistence.Id
@javax.persistence.GeneratedValue(strategy = javax.persistence.GenerationType.SEQUENCE, generator = "TB_COMMON_NEMU_SEQ")
@javax.persistence.Column(name = "ID")
public Long getId() {
return id;
}
/**
* Set the primary key.
*
* @param id The primary key.
*/
public void setId(Long id) {
this.id = id;
}
/** Regular field. */
private java.lang.Long roleid;
/**
* Get the roleid.
*
* @return The roleid.
*/
@javax.persistence.Column(name = "ROLEID")
public java.lang.Long getRoleid() {
return roleid;
}
/**
* Set the roleid.
*
* @param roleid The roleid.
*/
public void setRoleid(java.lang.Long roleid) {
this.roleid = roleid;
}
/** Regular field. */
private java.lang.String code;
/**
* Get the code.
*
* @return The code.
*/
@javax.persistence.Column(name = "CODE")
public java.lang.String getCode() {
return code;
}
/**
* Set the code.
*
* @param code The code.
*/
public void setCode(java.lang.String code) {
this.code = code;
}
/** Regular field. */
private java.lang.Long lever;
/**
* Get the lever.
*
* @return The lever.
*/
@javax.persistence.Column(name = "LEVER")
public java.lang.Long getLever() {
return lever;
}
/**
* Set the lever.
*
* @param lever The lever.
*/
public void setLever(java.lang.Long lever) {
this.lever = lever;
}
/** Regular field. */
private Boolean isleaf;
/**
* Get the isleaf.
*
* @return The isleaf.
*/
@javax.persistence.Column(name = "ISLEAF")
public Boolean getIsleaf() {
return isleaf;
}
/**
* Set the isleaf.
*
* @param isleaf The isleaf.
*/
public void setIsleaf(Boolean isleaf) {
this.isleaf = isleaf;
}
/** Regular field. */
private Integer functype;
/**
* Get the isleaf.
*
* @return The isleaf.
*/
@javax.persistence.Column(name = "functype")
public Integer getFunctype() {
return functype;
}
/**
* Set the isleaf.
*
* @param isleaf The isleaf.
*/
public void setFunctype(Integer functype) {
this.functype = functype;
}
/** Regular field. */
private java.lang.String cname;
/**
* Get the cname.
*
* @return The cname.
*/
@javax.persistence.Column(name = "CNAME")
public java.lang.String getCname() {
return cname;
}
/**
* Set the cname.
*
* @param cname The cname.
*/
public void setCname(java.lang.String cname) {
this.cname = cname;
}
/** Regular field. */
private java.lang.Long parentid;
/**
* Get the parentid.
*
* @return The parentid.
*/
@javax.persistence.Column(name = "PARENTID")
public java.lang.Long getParentid() {
return parentid;
}
/**
* Set the parentid.
*
* @param parentid The parentid.
*/
public void setParentid(java.lang.Long parentid) {
this.parentid = parentid;
}
/** Regular field. */
private Integer menuorder;
/**
* Get the urltype.
*
* @return The urltype.
*/
@javax.persistence.Column(name = "menuorder")
public Integer getmenuorder() {
return menuorder;
}
/**
* Set the urltype.
*
* @param urltype The urltype.
*/
public void setmenuorder(Integer menuorder) {
this.menuorder = menuorder;
}
private Integer urltype;
/**
* Get the urltype.
*
* @return The urltype.
*/
@javax.persistence.Column(name = "URLTYPE")
public Integer getUrltype() {
return urltype;
}
/**
* Set the urltype.
*
* @param urltype The urltype.
*/
public void setUrltype(Integer urltype) {
this.urltype = urltype;
}
/** Regular field. */
private java.lang.String url;
/**
* Get the url.
*
* @return The url.
*/
@javax.persistence.Column(name = "URL")
public java.lang.String getUrl() {
return url;
}
/**
* Set the url.
*
* @param url The url.
*/
public void setUrl(java.lang.String url) {
this.url = url;
}
/** Regular field. */
private java.lang.String meno;
/**
* Get the meno.
*
* @return The meno.
*/
@javax.persistence.Column(name = "MENO")
public java.lang.String getMeno() {
return meno;
}
/**
* Set the meno.
*
* @param meno The meno.
*/
public void setMeno(java.lang.String meno) {
this.meno = meno;
}
/** Regular field. */
private java.lang.String funcoperate;
@javax.persistence.Column(name = "funcoperate")
public java.lang.String getFuncoperate() {
return funcoperate;
}
/**
* Set the meno.
*
* @param meno The meno.
*/
public void setFuncoperate(java.lang.String funcoperate) {
this.funcoperate = funcoperate;
}
@Override
public MenuEntity clone() {
return new MenuEntity(roleid, code, lever, isleaf, cname, parentid, urltype, url, meno,functype,menuorder,funcoperate);
}
public MenuEntity() {
super();
// TODO Auto-generated constructor stub
}
public MenuEntity(Long roleid, String code, Long lever, Boolean isleaf, String cname, Long parentid, Integer urltype, String url, String meno,Integer functype,Integer menuorder,String funcoperate) {
super();
// TODO Auto-generated constructor stub
this.roleid = roleid;
this.code = code;
this.lever = lever;
this.isleaf = isleaf;
this.cname = cname;
this.parentid = parentid;
this.urltype = urltype;
this.url = url;
this.meno = meno;
this.functype=functype;
this.menuorder=menuorder;
this.funcoperate=funcoperate;
}
public int compareTo(Object o) {
MenuEntity another=(MenuEntity)o;
return menuorder.compareTo(another.menuorder);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -