Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
package org.berkadem.persistence.model;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
/**
* Created by HasanCelik on 10.10.2015.
*/
@Entity
@SqlResultSetMappings({
@SqlResultSetMapping(
name = "ProjectsTableMapping",
classes = @ConstructorResult(
targetClass = ProjectsTables.class,
columns = {
@ColumnResult(name = "faaliyetTuru", type = String.class),
@ColumnResult(name = "projeNumarasi", type = String.class),
@ColumnResult(name = "projeSahibiKurum", type = String.class),
@ColumnResult(name = "projeAdi", type = String.class),
@ColumnResult(name = "ilgiliPersonel", type = String.class),
@ColumnResult(name = "katSayisi",type = int.class),
@ColumnResult(name = "refSayisi",type = int.class),
@ColumnResult(name = "engKatSayisi",type = int.class),
@ColumnResult(name = "perSayisi",type = int.class),
@ColumnResult(name = "projeBitTarihi",type = Date.class),
@ColumnResult(name = "raporTarihi",type = Date.class),
@ColumnResult(name = "topButce",type = int.class),
@ColumnResult(name = "sozlesme", type = String.class) }))
})
public class ProjectsFlow {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
@OneToOne(cascade = CascadeType.PERSIST)
@JoinColumn(name = "projeId")
private Projects projeId;
private String rolu;
private String katilimciGonKurum;
private String evSahibiUlke;
private String evSahibiKurum;
private String araciKurum;
private String egitimBasligi;
private int katSayisi;
private int refSayisi;
private int engKatSayisi;
private int perSayisi;
private Date basTarihi;
private Date bitTarihi;
private int sure;
private int engDesOrani;
private int ozelDesSayisi;
private int ozelDesOrani;
private int uzaklik;
private String uzaklikBandi;
private int butce;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Projects getProjeId() {
return projeId;
}
public void setProjeId(Projects projeId) {
this.projeId = projeId;
}
public String getRolu() {
return rolu;
}
public void setRolu(String rolu) {
this.rolu = rolu;
}
public String getKatilimciGonKurum() {
return katilimciGonKurum;
}
public void setKatilimciGonKurum(String katilimciGonKurum) {
this.katilimciGonKurum = katilimciGonKurum;
}
public String getEvSahibiUlke() {
return evSahibiUlke;
}
public void setEvSahibiUlke(String evSahibiUlke) {
this.evSahibiUlke = evSahibiUlke;
}
public String getEvSahibiKurum() {
return evSahibiKurum;
}
public void setEvSahibiKurum(String evSahibiKurum) {
this.evSahibiKurum = evSahibiKurum;
}
public String getAraciKurum() {
return araciKurum;
}
public void setAraciKurum(String araciKurum) {
this.araciKurum = araciKurum;
}
public String getEgitimBasligi() {
return egitimBasligi;
}
public void setEgitimBasligi(String egitimBasligi) {
this.egitimBasligi = egitimBasligi;
}
public int getKatSayisi() {
return katSayisi;
}
public void setKatSayisi(int katSayisi) {
this.katSayisi = katSayisi;
}
public int getRefSayisi() {
return refSayisi;
}
public void setRefSayisi(int refSayisi) {
this.refSayisi = refSayisi;
}
public int getEngKatSayisi() {
return engKatSayisi;
}
public void setEngKatSayisi(int engKatSayisi) {
this.engKatSayisi = engKatSayisi;
}
public int getPerSayisi() {
return perSayisi;
}
public void setPerSayisi(int perSayisi) {
this.perSayisi = perSayisi;
}
public Date getBasTarihi() {
return basTarihi;
}
public void setBasTarihi(Date basTarihi) {
this.basTarihi = basTarihi;
}
public Date getBitTarihi() {
return bitTarihi;
}
public void setBitTarihi(Date bitTarihi) {
this.bitTarihi = bitTarihi;
}
public int getSure() {
return sure;
}
public void setSure(int sure) {
this.sure = sure;
}
public int getEngDesOrani() {
return engDesOrani;
}
public void setEngDesOrani(int engDesOrani) {
this.engDesOrani = engDesOrani;
}
public int getOzelDesSayisi() {
return ozelDesSayisi;
}
public void setOzelDesSayisi(int ozelDesSayisi) {
this.ozelDesSayisi = ozelDesSayisi;
}
public int getOzelDesOrani() {
return ozelDesOrani;
}
public void setOzelDesOrani(int ozelDesOrani) {
this.ozelDesOrani = ozelDesOrani;
}
public int getUzaklik() {
return uzaklik;
}
public void setUzaklik(int uzaklik) {
this.uzaklik = uzaklik;
}
public String getUzaklikBandi() {
return uzaklikBandi;
}
public void setUzaklikBandi(String uzaklikBandi) {
this.uzaklikBandi = uzaklikBandi;
}
public int getButce() {
return butce;
}
public void setButce(int butce) {
this.butce = butce;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.