56 lines
1.3 KiB
Java
56 lines
1.3 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.Table;
|
|
|
|
import com.jasamedika.medifirst2000.base.BaseMaster;
|
|
import com.jasamedika.medifirst2000.helper.Caption;
|
|
import org.hibernate.envers.Audited;
|
|
import javax.persistence.GeneratedValue;
|
|
import javax.persistence.GenerationType;
|
|
import javax.persistence.Id;
|
|
|
|
@Entity // @Audited
|
|
@Table(name = "Embrio_M")
|
|
public class Embrio extends BaseMaster {
|
|
|
|
@Column(name = "Jumlah", nullable = false)
|
|
@Caption(value = "Jumlah")
|
|
private Integer jumlah;
|
|
|
|
@Column(name = "Kualitas", nullable = false)
|
|
@Caption(value = "Kualitas")
|
|
private String kualitas;
|
|
|
|
public Integer getJumlah() {
|
|
return jumlah;
|
|
}
|
|
|
|
public void setJumlah(Integer jumlah) {
|
|
this.jumlah = jumlah;
|
|
}
|
|
|
|
public String getKualitas() {
|
|
return kualitas;
|
|
}
|
|
|
|
public void setKualitas(String kualitas) {
|
|
this.kualitas = kualitas;
|
|
}
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.embrio_m_id_seq")
|
|
@javax.persistence.SequenceGenerator(name = "public.embrio_m_id_seq", sequenceName = "public.embrio_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
public Integer getId() {
|
|
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
} |