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

📄 employeeaddressdata.java

📁 XDoclet 使自动生成部署描述符更为便利。XDoclet 是一个代码生成实用程序
💻 JAVA
字号:
/* * Generated by XDoclet - Do not edit! */package test.ejb.cmr;/** * Data object for EmployeeAddress. * @xdoclet-generated at 22-10-04 * @copyright The XDoclet Team * @author XDoclet * @version 1.2.2 */public class EmployeeAddressData   extends java.lang.Object   implements java.io.Serializable{   private java.lang.Integer id;   private java.lang.String description;  /* begin value object */   private test.ejb.cmr.EmployeeAddressValue EmployeeAddressValue = null;   public test.ejb.cmr.EmployeeAddressValue getEmployeeAddressValue()   {	  if( EmployeeAddressValue == null )	  {          EmployeeAddressValue = new test.ejb.cmr.EmployeeAddressValue();	  }      try         {            EmployeeAddressValue.setId( getId() );            EmployeeAddressValue.setDescription( getDescription() );                   }         catch (Exception e)         {            throw new javax.ejb.EJBException(e);         }	  return EmployeeAddressValue;   }   public void setEmployeeAddressValue( test.ejb.cmr.EmployeeAddressValue valueHolder )   {	  try	  {		 setDescription( valueHolder.getDescription() );	  }	  catch (Exception e)	  {		 throw new javax.ejb.EJBException(e);	  }   }  /* end value object */   public EmployeeAddressData()   {   }   public EmployeeAddressData( java.lang.Integer id,java.lang.String description )   {      setId(id);      setDescription(description);   }   public EmployeeAddressData( EmployeeAddressData otherData )   {      setId(otherData.getId());      setDescription(otherData.getDescription());   }   public java.lang.Integer getPrimaryKey() {     return  getId();   }   public java.lang.Integer getId()   {      return this.id;   }   public void setId( java.lang.Integer id )   {      this.id = id;   }   public java.lang.String getDescription()   {      return this.description;   }   public void setDescription( java.lang.String description )   {      this.description = description;   }   public String toString()   {      StringBuffer str = new StringBuffer("{");      str.append("id=" + getId() + " " + "description=" + getDescription());      str.append('}');      return(str.toString());   }   public boolean equals( Object pOther )   {      if( pOther instanceof EmployeeAddressData )      {         EmployeeAddressData lTest = (EmployeeAddressData) pOther;         boolean lEquals = true;         if( this.id == null )         {            lEquals = lEquals && ( lTest.id == null );         }         else         {            lEquals = lEquals && this.id.equals( lTest.id );         }         if( this.description == null )         {            lEquals = lEquals && ( lTest.description == null );         }         else         {            lEquals = lEquals && this.description.equals( lTest.description );         }         return lEquals;      }      else      {         return false;      }   }   public int hashCode()   {      int result = 17;      result = 37*result + ((this.id != null) ? this.id.hashCode() : 0);      result = 37*result + ((this.description != null) ? this.description.hashCode() : 0);      return result;   }}

⌨️ 快捷键说明

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