/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
 */
package com.qsoft.rs.sincoar.model;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 *
 * @author developer2
 */
@Embeddable
public class TgeneinstallmenttypedescPK implements Serializable {

    @Basic(optional = false)
    @Column(name = "INSTALLMENTTYPE")
    private String installmenttype;
    @Basic(optional = false)
    @Column(name = "MODULECODE")
    private String modulecode;
    @Basic(optional = false)
    @Column(name = "LANGUAGECODE")
    private String languagecode;

    public TgeneinstallmenttypedescPK() {
    }

    public TgeneinstallmenttypedescPK(String installmenttype, String modulecode, String languagecode) {
        this.installmenttype = installmenttype;
        this.modulecode = modulecode;
        this.languagecode = languagecode;
    }

    public String getInstallmenttype() {
        return installmenttype;
    }

    public void setInstallmenttype(String installmenttype) {
        this.installmenttype = installmenttype;
    }

    public String getModulecode() {
        return modulecode;
    }

    public void setModulecode(String modulecode) {
        this.modulecode = modulecode;
    }

    public String getLanguagecode() {
        return languagecode;
    }

    public void setLanguagecode(String languagecode) {
        this.languagecode = languagecode;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (installmenttype != null ? installmenttype.hashCode() : 0);
        hash += (modulecode != null ? modulecode.hashCode() : 0);
        hash += (languagecode != null ? languagecode.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TgeneinstallmenttypedescPK)) {
            return false;
        }
        TgeneinstallmenttypedescPK other = (TgeneinstallmenttypedescPK) object;
        if ((this.installmenttype == null && other.installmenttype != null) || (this.installmenttype != null && !this.installmenttype.equals(other.installmenttype))) {
            return false;
        }
        if ((this.modulecode == null && other.modulecode != null) || (this.modulecode != null && !this.modulecode.equals(other.modulecode))) {
            return false;
        }
        if ((this.languagecode == null && other.languagecode != null) || (this.languagecode != null && !this.languagecode.equals(other.languagecode))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.qsoft.rs.sincoar.model.TgeneinstallmenttypedescPK[ installmenttype=" + installmenttype + ", modulecode=" + modulecode + ", languagecode=" + languagecode + " ]";
    }
    
}
