1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
|
package gdc.domain.model;
// Generated 14 mai 2008 11:06:52 by Hibernate Tools 3.2.1.GA
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
/**
* MoisjoursId generated by hbm2java
*/
@Embeddable
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@NamedQuery (name = "MoisjoursId.getMoisjoursId", query = "SELECT * FROM MoisjoursId")
public class MoisjoursId implements java.io.Serializable {
private int jour;
private int mois;
public MoisjoursId() {
}
public MoisjoursId(int jour, int mois) {
this.jour = jour;
this.mois = mois;
}
@Column(name="jour", nullable=false)
public int getJour() {
return this.jour;
}
public void setJour(int jour) {
this.jour = jour;
}
@Column(name="mois", nullable=false)
public int getMois() {
return this.mois;
}
public void setMois(int mois) {
this.mois = mois;
}
public boolean equals(Object other) {
if ( (this == other ) ) return true;
if ( (other == null ) ) return false;
if ( !(other instanceof MoisjoursId) ) return false;
MoisjoursId castOther = ( MoisjoursId ) other;
return (this.getJour()==castOther.getJour())
&& (this.getMois()==castOther.getMois());
}
public int hashCode() {
int result = 17;
result = 37 * result + this.getJour();
result = 37 * result + this.getMois();
return result;
}
} |
Partager