Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.katho.centric.model;
- // Generated 6-nov-2012 17:01:54 by Hibernate Tools 3.2.1.GA
- import javax.persistence.Column;
- import javax.persistence.Embeddable;
- /**
- * ProductlanguageId generated by hbm2java
- */
- @Embeddable
- public class ProductlanguageId implements java.io.Serializable {
- private int id;
- private int productsId;
- private int languagesId;
- public ProductlanguageId() {
- }
- public ProductlanguageId(int id, int productsId, int languagesId) {
- this.id = id;
- this.productsId = productsId;
- this.languagesId = languagesId;
- }
- @Column(name="id", nullable=false)
- public int getId() {
- return this.id;
- }
- public void setId(int id) {
- this.id = id;
- }
- @Column(name="Products_Id", nullable=false)
- public int getProductsId() {
- return this.productsId;
- }
- public void setProductsId(int productsId) {
- this.productsId = productsId;
- }
- @Column(name="Languages_id", nullable=false)
- public int getLanguagesId() {
- return this.languagesId;
- }
- public void setLanguagesId(int languagesId) {
- this.languagesId = languagesId;
- }
- public boolean equals(Object other) {
- if ( (this == other ) ) return true;
- if ( (other == null ) ) return false;
- if ( !(other instanceof ProductlanguageId) ) return false;
- ProductlanguageId castOther = ( ProductlanguageId ) other;
- return (this.getId()==castOther.getId())
- && (this.getProductsId()==castOther.getProductsId())
- && (this.getLanguagesId()==castOther.getLanguagesId());
- }
- public int hashCode() {
- int result = 17;
- result = 37 * result + this.getId();
- result = 37 * result + this.getProductsId();
- result = 37 * result + this.getLanguagesId();
- return result;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement