⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rolefuncentity.java

📁 国内很牛的软件公司花费两年半开发的用EJB3开发的代码,采用STRUTS和EJB3,目前系统进行第二版.所以拿出来共享
💻 JAVA
字号:
package com.ufmobile.common.role.entity;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Transient;


@SuppressWarnings("serial") 

@javax.persistence.Entity
@javax.persistence.Table(name = "TB_COMMON_ROLEFUNC")
@javax.persistence.SequenceGenerator(name="TB_COMMON_ROLEFUNC_SEQ", sequenceName="S_COMMON_ROLEFUNC", allocationSize=25) 
    
public class RolefuncEntity 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_ROLEFUNC_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 fuccode;

   /**
    * Get the fuccode.
    *
    * @return The fuccode.
    */
   @javax.persistence.Column(name = "FUCCODE")
   public java.lang.String getFuccode() {
      return fuccode;
   }

   /**
    * Set the fuccode.
    *
    * @param fuccode The fuccode.
    */
   public void setFuccode(java.lang.String fuccode) {
      this.fuccode = fuccode;
   }

   /** 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.math.BigDecimal roleedit;

   /**
    * Get the roleedit.
    *
    * @return The roleedit.
    */
   @javax.persistence.Column(name = "ROLEEDIT")
   public java.math.BigDecimal getRoleedit() {
      return roleedit;
   }

   /**
    * Set the roleedit.
    *
    * @param roleedit The roleedit.
    */
   public void setRoleedit(java.math.BigDecimal roleedit) {
      this.roleedit = roleedit;
   }

   /** Regular field. */
   private java.math.BigDecimal roleadd;

   /**
    * Get the roleadd.
    *
    * @return The roleadd.
    */
   @javax.persistence.Column(name = "ROLEADD")
   public java.math.BigDecimal getRoleadd() {
      return roleadd;
   }

   /**
    * Set the roleadd.
    *
    * @param roleadd The roleadd.
    */
   public void setRoleadd(java.math.BigDecimal roleadd) {
      this.roleadd = roleadd;
   }

   /** Regular field. */
   private java.math.BigDecimal roledel;

   /**
    * Get the roledel.
    *
    * @return The roledel.
    */
   @javax.persistence.Column(name = "ROLEDEL")
   public java.math.BigDecimal getRoledel() {
      return roledel;
   }

   /**
    * Set the roledel.
    *
    * @param roledel The roledel.
    */
   public void setRoledel(java.math.BigDecimal roledel) {
      this.roledel = roledel;
   }

   /** Regular field. */
   private java.math.BigDecimal rolestart;

   /**
    * Get the rolestart.
    *
    * @return The rolestart.
    */
   @javax.persistence.Column(name = "ROLESTART")
   public java.math.BigDecimal getRolestart() {
      return rolestart;
   }

   /**
    * Set the rolestart.
    *
    * @param rolestart The rolestart.
    */
   public void setRolestart(java.math.BigDecimal rolestart) {
      this.rolestart = rolestart;
   }

   /** Regular field. */
   private java.math.BigDecimal rolestop;

   /**
    * Get the rolestop.
    *
    * @return The rolestop.
    */
   @javax.persistence.Column(name = "ROLESTOP")
   public java.math.BigDecimal getRolestop() {
      return rolestop;
   }

   /**
    * Set the rolestop.
    *
    * @param rolestop The rolestop.
    */
   public void setRolestop(java.math.BigDecimal rolestop) {
      this.rolestop = rolestop;
   }

   /** Regular field. */
   private java.math.BigDecimal other1;

   /**
    * Get the other1.
    *
    * @return The other1.
    */
   @javax.persistence.Column(name = "OTHER1")
   public java.math.BigDecimal getOther1() {
      return other1;
   }

   /**
    * Set the other1.
    *
    * @param other1 The other1.
    */
   public void setOther1(java.math.BigDecimal other1) {
      this.other1 = other1;
   }

   /** Regular field. */
   private java.math.BigDecimal other2;

   /**
    * Get the other2.
    *
    * @return The other2.
    */
   @javax.persistence.Column(name = "OTHER2")
   public java.math.BigDecimal getOther2() {
      return other2;
   }

   /**
    * Set the other2.
    *
    * @param other2 The other2.
    */
   public void setOther2(java.math.BigDecimal other2) {
      this.other2 = other2;
   }

   /** Regular field. */
   private java.math.BigDecimal other3;

   /**
    * Get the other3.
    *
    * @return The other3.
    */
   @javax.persistence.Column(name = "OTHER3")
   public java.math.BigDecimal getOther3() {
      return other3;
   }

   /**
    * Set the other3.
    *
    * @param other3 The other3.
    */
   public void setOther3(java.math.BigDecimal other3) {
      this.other3 = other3;
   }

   /** Regular field. */
   private java.math.BigDecimal other4;

   /**
    * Get the other4.
    *
    * @return The other4.
    */
   @javax.persistence.Column(name = "OTHER4")
   public java.math.BigDecimal getOther4() {
      return other4;
   }

   /**
    * Set the other4.
    *
    * @param other4 The other4.
    */
   public void setOther4(java.math.BigDecimal other4) {
      this.other4 = other4;
   }

   /** Regular field. */
   private java.math.BigDecimal other5;

   /**
    * Get the other5.
    *
    * @return The other5.
    */
   @javax.persistence.Column(name = "OTHER5")
   public java.math.BigDecimal getOther5() {
      return other5;
   }

   /**
    * Set the other5.
    *
    * @param other5 The other5.
    */
   public void setOther5(java.math.BigDecimal other5) {
      this.other5 = other5;
   }

   public int compareTo(Object o) {
	 return url.compareTo(((RolefuncEntity)o).getUrl());
	  
   }
   private List funcodes;
   @Transient
   public List getFunCodes(){
	   return funcodes;
   }
   public void setFuncodes(List func){
	   funcodes=func;
   }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -