package com.jasamedika.medifirst2000.vo; import java.io.Serializable; import java.util.HashSet; import java.util.Set; import javax.persistence.*; import java.util.Date; import org.hibernate.validator.constraints.NotEmpty; import com.jasamedika.medifirst2000.base.vo.BaseMasterVO; import com.jasamedika.medifirst2000.entities.KotaKabupaten; import com.jasamedika.medifirst2000.entities.Propinsi; 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.vo.BaseMasterVO; import com.jasamedika.medifirst2000.helper.Caption; public class KecamatanVO extends BaseMasterVO { @NotNull(message = "Kd Kecamatan tidak boleh kosong") @Caption(value = "Kode Kecamatan") private Integer kdKecamatan; @ManyToOne(fetch = FetchType.LAZY) @NotNull(message = "Kd Kota Kabupaten tidak boleh kosong") @Caption(value = "Object Kota Kabupaten") private KotaKabupatenVO kotaKabupaten; @ManyToOne(fetch = FetchType.LAZY) @NotNull(message = "Kd Propinsi tidak boleh kosong") @Caption(value = "Object Propinsi") private PropinsiVO propinsi; @NotNull(message = "Nama Kecamatan tidak boleh kosong") @Caption(value = "Nama Kecamatan") private String namaKecamatan; @NotNull(message = "QKecamatan tidak boleh kosong") @Caption(value = "QKecamatan") private Integer qKecamatan; public Integer getKdKecamatan() { return kdKecamatan; } public void setKdKecamatan(Integer kdKecamatan) { this.kdKecamatan = kdKecamatan; } public KotaKabupatenVO getKotaKabupaten() { return kotaKabupaten; } public void setKotaKabupaten(KotaKabupatenVO kotaKabupaten) { this.kotaKabupaten = kotaKabupaten; } public PropinsiVO getPropinsi() { return propinsi; } public void setPropinsi(PropinsiVO propinsi) { this.propinsi = propinsi; } public String getNamaKecamatan() { return namaKecamatan; } public void setNamaKecamatan(String namaKecamatan) { this.namaKecamatan = namaKecamatan; } public Integer getqKecamatan() { return qKecamatan; } public void setqKecamatan(Integer qKecamatan) { this.qKecamatan = qKecamatan; } }