83 lines
2.1 KiB
Java
83 lines
2.1 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
|
|
import java.io.Serializable;
|
|
import org.hibernate.envers.Audited;
|
|
import javax.persistence.*;
|
|
|
|
import org.hibernate.validator.constraints.NotEmpty;
|
|
|
|
import com.jasamedika.medifirst2000.base.BaseMaster;
|
|
import javax.validation.constraints.NotNull;
|
|
import org.hibernate.validator.constraints.Length;
|
|
import org.hibernate.validator.internal.util.logging.Messages;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonManagedReference;
|
|
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;
|
|
|
|
/**
|
|
* class CaraMasuk
|
|
*
|
|
* @author Generator
|
|
*/
|
|
@Entity // @Audited
|
|
@Table(name = "CaraMasuk_M")
|
|
public class CaraMasuk extends BaseMaster {
|
|
@NotNull(message = "Cara Masuk tidak boleh kosong")
|
|
@Column(name = "CaraMasuk", nullable = false, length = 30)
|
|
@Caption(value = "Cara Masuk")
|
|
private String caraMasuk;
|
|
|
|
public void setCaraMasuk(String caraMasuk) {
|
|
this.caraMasuk = caraMasuk;
|
|
}
|
|
|
|
public String getCaraMasuk() {
|
|
return this.caraMasuk;
|
|
}
|
|
|
|
@NotNull(message = "Kd Cara Masuk tidak boleh kosong")
|
|
@Column(name = "KdCaraMasuk", nullable = false)
|
|
@Caption(value = "Kode Cara Masuk")
|
|
private Byte kdCaraMasuk;
|
|
|
|
public void setKdCaraMasuk(Byte kdCaraMasuk) {
|
|
this.kdCaraMasuk = kdCaraMasuk;
|
|
}
|
|
|
|
public Byte getKdCaraMasuk() {
|
|
return this.kdCaraMasuk;
|
|
}
|
|
|
|
@NotNull(message = "QCara Masuk tidak boleh kosong")
|
|
@Column(name = "QCaraMasuk", nullable = false)
|
|
@Caption(value = "QCara Masuk")
|
|
private Byte qCaraMasuk;
|
|
|
|
public void setqCaraMasuk(Byte qCaraMasuk) {
|
|
this.qCaraMasuk = qCaraMasuk;
|
|
}
|
|
|
|
public Byte getqCaraMasuk() {
|
|
return this.qCaraMasuk;
|
|
}
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.caramasuk_m_id_seq")
|
|
@javax.persistence.SequenceGenerator(name = "public.caramasuk_m_id_seq", sequenceName = "public.caramasuk_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
public Integer getId() {
|
|
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
} |