Last active
August 29, 2015 14:09
-
-
Save gitbricho/9bee31cc3d255596961e to your computer and use it in GitHub Desktop.
healthcare : com.itrane.healthcare.model.Vital.java
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
@Entity | |
@Table(name = "vital") | |
public class Vital implements Serializable { | |
private static final long serialVersionUID = 1L; | |
@Id | |
@GeneratedValue | |
private Long id = null; | |
@Version | |
protected Integer version = 0; | |
@Size(max=20) | |
private String name; | |
@Size(max=10) | |
private String sokuteiJikan; | |
@NotNull | |
@Size(min=1, max=5) | |
private String sokuteiTi; | |
private VitalMst vitalM; | |
private Vod vod; | |
/** コンストラクタ */ | |
public Vital() { | |
super(); | |
} | |
public Vital(String name, String sokuteiJikan, | |
String sokuteiTi, Vod vod, VitalMst vitalM) { | |
super(); | |
this.name = name; | |
this.sokuteiJikan = sokuteiJikan; | |
this.sokuteiTi = sokuteiTi; | |
this.vod = vod; | |
this.vitalM = vitalM; | |
} | |
@ManyToOne | |
public VitalMst getVitalM() { | |
return this.vitalM; | |
} | |
public void setVitalM(VitalMst vitalM) { | |
this.vitalM = vitalM; | |
} | |
/** 関連するVod の取得 */ | |
@ManyToOne | |
@JoinColumn(name="VOD_ID", nullable=false) | |
public Vod getVod() { | |
return vod; | |
} | |
/** Vod の設定 */ | |
public void setVod(Vod vod) { | |
this.vod = vod; | |
} | |
.... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment