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

📄 lineitemid.java

📁 hibernate 简单的例子
💻 JAVA
字号:
package org.itfuture.www.po;



/**
 * LineitemId generated by MyEclipse - Hibernate Tools
 */

public class LineitemId  implements java.io.Serializable {


    // Fields    

     private Orders orders;
     private Long linenum;


    // Constructors

    /** default constructor */
    public LineitemId() {
    }
    /** full constructor */
    public LineitemId(Orders orders, Long linenum) {
        this.orders = orders;
        this.linenum = linenum;
    }

   
    // Property accessors

    public Orders getOrders() {
        return this.orders;
    }
    
    public void setOrders(Orders orders) {
        this.orders = orders;
    }

    public Long getLinenum() {
        return this.linenum;
    }
    
    public void setLinenum(Long linenum) {
        this.linenum = linenum;
    }
   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof LineitemId) ) return false;
		 LineitemId castOther = ( LineitemId ) other; 
         
		 return ( (this.getOrders()==castOther.getOrders()) || ( this.getOrders()!=null && castOther.getOrders()!=null && this.getOrders().equals(castOther.getOrders()) ) ) && ( (this.getLinenum()==castOther.getLinenum()) || ( this.getLinenum()!=null && castOther.getLinenum()!=null && this.getLinenum().equals(castOther.getLinenum()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getOrders() == null ? 0 : this.getOrders().hashCode() );
         result = 37 * result + ( getLinenum() == null ? 0 : this.getLinenum().hashCode() );
         return result;
   }   





}

⌨️ 快捷键说明

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