Created
January 8, 2016 21:09
-
-
Save abacha/b9f039197b0f267151b7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * To change this license header, choose License Headers in Project Properties. | |
| * To change this template file, choose Tools | Templates | |
| * and open the template in the editor. | |
| */ | |
| package br.bip.informerendimento.vo; | |
| import java.io.Serializable; | |
| import javax.persistence.Basic; | |
| import javax.persistence.Column; | |
| import javax.persistence.Entity; | |
| import javax.persistence.GeneratedValue; | |
| import javax.persistence.GenerationType; | |
| import javax.persistence.Id; | |
| import javax.persistence.JoinColumn; | |
| import javax.persistence.ManyToOne; | |
| import javax.persistence.NamedQueries; | |
| import javax.persistence.NamedQuery; | |
| import javax.persistence.SequenceGenerator; | |
| import javax.persistence.Table; | |
| import javax.validation.constraints.NotNull; | |
| import javax.xml.bind.annotation.XmlRootElement; | |
| /** | |
| * | |
| * @author laoliveira | |
| */ | |
| @Entity | |
| @Table(name = "IRRELORIPROD", catalog = "", schema = "IRCONS") | |
| @XmlRootElement | |
| @NamedQueries({ | |
| @NamedQuery(name = "Irreloriprod.findAll", query = "SELECT i FROM Irreloriprod i")}) | |
| public class Irreloriprod implements Serializable { | |
| private static final long serialVersionUID = 1L; | |
| @Id | |
| @SequenceGenerator(name = "SQ_IRRELORIPROD", sequenceName = "IRCONS.SQ_IRRELORIPROD", allocationSize = 1) | |
| @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SQ_IRRELORIPROD") | |
| @Basic(optional = false) | |
| @NotNull | |
| @Column(name = "SQ_IRRELORIPROD") | |
| private Long sqIrreloriprod; | |
| @JoinColumn(name = "SQ_IRDMORIGEM", referencedColumnName = "SQ_IRDMORIGEM") | |
| @ManyToOne(optional = false) | |
| private Irdmorigem sqIrdmorigem; | |
| @JoinColumn(name = "SQ_IRDMPRODUTO", referencedColumnName = "SQ_IRDMPRODUTO") | |
| @ManyToOne(optional = false) | |
| private Irdmproduto sqIrdmproduto; | |
| public Irreloriprod() { | |
| } | |
| public Irreloriprod(Long sqIrreloriprod) { | |
| this.sqIrreloriprod = sqIrreloriprod; | |
| } | |
| public Long getSqIrreloriprod() { | |
| return sqIrreloriprod; | |
| } | |
| public void setSqIrreloriprod(Long sqIrreloriprod) { | |
| this.sqIrreloriprod = sqIrreloriprod; | |
| } | |
| public Irdmorigem getSqIrdmorigem() { | |
| return sqIrdmorigem; | |
| } | |
| public void setSqIrdmorigem(Irdmorigem sqIrdmorigem) { | |
| this.sqIrdmorigem = sqIrdmorigem; | |
| } | |
| public Irdmproduto getSqIrdmproduto() { | |
| return sqIrdmproduto; | |
| } | |
| public void setSqIrdmproduto(Irdmproduto sqIrdmproduto) { | |
| this.sqIrdmproduto = sqIrdmproduto; | |
| } | |
| @Override | |
| public int hashCode() { | |
| int hash = 0; | |
| hash += (sqIrreloriprod != null ? sqIrreloriprod.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 Irreloriprod)) { | |
| return false; | |
| } | |
| Irreloriprod other = (Irreloriprod) object; | |
| if ((this.sqIrreloriprod == null && other.sqIrreloriprod != null) || (this.sqIrreloriprod != null && !this.sqIrreloriprod.equals(other.sqIrreloriprod))) { | |
| return false; | |
| } | |
| return true; | |
| } | |
| @Override | |
| public String toString() { | |
| return "br.bip.informerendimento.vo.Irreloriprod[ sqIrreloriprod=" + sqIrreloriprod + " ]"; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment