Advertisement
Guest User

Untitled

a guest
Nov 25th, 2012
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.92 KB | None | 0 0
  1. package com.katho.centric.model;
  2. // Generated 6-nov-2012 17:01:54 by Hibernate Tools 3.2.1.GA
  3.  
  4.  
  5. import javax.persistence.Column;
  6. import javax.persistence.Embeddable;
  7.  
  8. /**
  9.  * ProductlanguageId generated by hbm2java
  10.  */
  11. @Embeddable
  12. public class ProductlanguageId  implements java.io.Serializable {
  13.  
  14.  
  15.      private int id;
  16.      private int productsId;
  17.      private int languagesId;
  18.  
  19.     public ProductlanguageId() {
  20.     }
  21.  
  22.     public ProductlanguageId(int id, int productsId, int languagesId) {
  23.        this.id = id;
  24.        this.productsId = productsId;
  25.        this.languagesId = languagesId;
  26.     }
  27.    
  28.  
  29.     @Column(name="id", nullable=false)
  30.     public int getId() {
  31.         return this.id;
  32.     }
  33.    
  34.     public void setId(int id) {
  35.         this.id = id;
  36.     }
  37.  
  38.     @Column(name="Products_Id", nullable=false)
  39.     public int getProductsId() {
  40.         return this.productsId;
  41.     }
  42.    
  43.     public void setProductsId(int productsId) {
  44.         this.productsId = productsId;
  45.     }
  46.  
  47.     @Column(name="Languages_id", nullable=false)
  48.     public int getLanguagesId() {
  49.         return this.languagesId;
  50.     }
  51.    
  52.     public void setLanguagesId(int languagesId) {
  53.         this.languagesId = languagesId;
  54.     }
  55.  
  56.  
  57.    public boolean equals(Object other) {
  58.          if ( (this == other ) ) return true;
  59.          if ( (other == null ) ) return false;
  60.          if ( !(other instanceof ProductlanguageId) ) return false;
  61.          ProductlanguageId castOther = ( ProductlanguageId ) other;
  62.          
  63.          return (this.getId()==castOther.getId())
  64.  && (this.getProductsId()==castOther.getProductsId())
  65.  && (this.getLanguagesId()==castOther.getLanguagesId());
  66.    }
  67.    
  68.    public int hashCode() {
  69.          int result = 17;
  70.          
  71.          result = 37 * result + this.getId();
  72.          result = 37 * result + this.getProductsId();
  73.          result = 37 * result + this.getLanguagesId();
  74.          return result;
  75.    }  
  76.  
  77.  
  78. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement