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 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173
| package com.proxymit.grh.model;
// default package
// Generated 10 avr. 2010 00:19:55 by Hibernate Tools 3.2.4.GA
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
/**
* Vacation generated by hbm2java
*/
@Entity
@Table(name = "vacation", catalog = "proxym")
public class Vacation implements java.io.Serializable {
private int idvacation;
private Employes employes;
private Vacationtype vacationtype;
private Date startDate;
private Date endDate;
private Double duration;
private Integer numberOfWorkingDays;
private Integer halfDay;
private String createdAt;
private Boolean state;
private String reason;
public Vacation() {
}
public Vacation(int idvacation, Employes employes, Vacationtype vacationtype) {
this.idvacation = idvacation;
this.employes = employes;
this.vacationtype = vacationtype;
}
public Vacation(int idvacation, Employes employes,
Vacationtype vacationtype, Date startDate, Date endDate,
Double duration, Integer numberOfWorkingDays, Integer halfDay,
String createdAt, Boolean state, String reason) {
this.idvacation = idvacation;
this.employes = employes;
this.vacationtype = vacationtype;
this.startDate = startDate;
this.endDate = endDate;
this.duration = duration;
this.numberOfWorkingDays = numberOfWorkingDays;
this.halfDay = halfDay;
this.createdAt = createdAt;
this.state = state;
this.reason = reason;
}
@Id
@Column(name = "idvacation", unique = true, nullable = false)
public int getIdvacation() {
return this.idvacation;
}
public void setIdvacation(int idvacation) {
this.idvacation = idvacation;
}
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "employes_ID")
public Employes getEmployes() {
return this.employes;
}
public void setEmployes(Employes employes) {
this.employes = employes;
}
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "vacationtype_idvacationtype")
public Vacationtype getVacationtype() {
return this.vacationtype;
}
public void setVacationtype(Vacationtype vacationtype) {
this.vacationtype = vacationtype;
}
@Temporal(TemporalType.DATE)
@Column(name = "Start_date", length = 0)
public Date getStartDate() {
return this.startDate;
}
public void setStartDate(Date startDate) {
this.startDate = startDate;
}
@Temporal(TemporalType.DATE)
@Column(name = "End_date", length = 0)
public Date getEndDate() {
return this.endDate;
}
public void setEndDate(Date endDate) {
this.endDate = endDate;
}
@Column(name = "duration", precision = 22, scale = 0)
public Double getDuration() {
return this.duration;
}
public void setDuration(Double duration) {
this.duration = duration;
}
@Column(name = "number_of_working_days")
public Integer getNumberOfWorkingDays() {
return this.numberOfWorkingDays;
}
public void setNumberOfWorkingDays(Integer numberOfWorkingDays) {
this.numberOfWorkingDays = numberOfWorkingDays;
}
@Column(name = "half_day")
public Integer getHalfDay() {
return this.halfDay;
}
public void setHalfDay(Integer halfDay) {
this.halfDay = halfDay;
}
@Column(name = "created_at", length = 65535)
public String getCreatedAt() {
return this.createdAt;
}
public void setCreatedAt(String createdAt) {
this.createdAt = createdAt;
}
@Column(name = "state")
public Boolean getState() {
return this.state;
}
public void setState(Boolean state) {
this.state = state;
}
@Column(name = "reason", length = 65535)
public String getReason() {
return this.reason;
}
public void setReason(String reason) {
this.reason = reason;
}
} |
Partager