152 lines
3.3 KiB
Java
152 lines
3.3 KiB
Java
/*package com.jasamedika.medifirst2000.vo;
|
|
|
|
import java.util.HashSet;
|
|
import java.util.Set;
|
|
|
|
import javax.persistence.AssociationOverride;
|
|
import javax.persistence.AssociationOverrides;
|
|
import javax.persistence.CascadeType;
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.FetchType;
|
|
import javax.persistence.GeneratedValue;
|
|
import javax.persistence.GenerationType;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.JoinColumn;
|
|
import javax.persistence.ManyToOne;
|
|
import javax.persistence.OneToMany;
|
|
import javax.persistence.Table;
|
|
import javax.persistence.UniqueConstraint;
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonManagedReference;
|
|
import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
|
|
import com.jasamedika.medifirst2000.helper.Caption;
|
|
|
|
|
|
*//**
|
|
* KelasMVO generated by hbm2java
|
|
*//*
|
|
//@Entity
|
|
//@Table(name = "Kelas_M_Sample")
|
|
|
|
public class KelasMVO extends BaseMasterVO {
|
|
|
|
*//**
|
|
* @author Andri
|
|
*//*
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "RuanganFk")
|
|
@NotNull(message="Object KelasVO Harus Diisi")
|
|
@Caption(value="Ruangan")
|
|
private RuanganMVO ruangan;
|
|
|
|
|
|
//@Id
|
|
@Column(name = "kdKelas", nullable = false, length = 2)
|
|
private String kdKelas;
|
|
|
|
@Column(name = "NamaKelas", nullable = false, length = 30)
|
|
private String namaKelas;
|
|
|
|
@Column(name = "NoUrut", nullable = false)
|
|
private short noUrut;
|
|
|
|
@Column(name = "KdKelasHead",nullable = false, length = 2)
|
|
private String kdKelasHead;
|
|
|
|
@Column(name = "QKelas", nullable = false)
|
|
private short qkelas;
|
|
|
|
@Column(name = "KdHistoryLoginI", nullable = false)
|
|
private int kdHistoryLoginI;
|
|
|
|
@Column(name = "KdHistoryLoginU")
|
|
private int kdHistoryLoginU;
|
|
|
|
@Column(name = "KdHistoryLoginS")
|
|
private int kdHistoryLoginS;
|
|
|
|
//
|
|
@OneToMany(fetch = FetchType.LAZY, mappedBy = "pk.kelasM", cascade=CascadeType.ALL,orphanRemoval=true)
|
|
private Set<MapRuanganToKelasM> mapRuanganToKelasMSet=new HashSet<MapRuanganToKelasM>();
|
|
|
|
|
|
public String getKdKelas() {
|
|
return kdKelas;
|
|
}
|
|
|
|
public void setKdKelas(String kdKelas) {
|
|
this.kdKelas = kdKelas;
|
|
}
|
|
|
|
public String getNamaKelas() {
|
|
return namaKelas;
|
|
}
|
|
|
|
public void setNamaKelas(String namaKelas) {
|
|
this.namaKelas = namaKelas;
|
|
}
|
|
|
|
public short getNoUrut() {
|
|
return noUrut;
|
|
}
|
|
|
|
public void setNoUrut(short noUrut) {
|
|
this.noUrut = noUrut;
|
|
}
|
|
|
|
public String getKdKelasHead() {
|
|
return kdKelasHead;
|
|
}
|
|
|
|
public void setKdKelasHead(String kdKelasHead) {
|
|
this.kdKelasHead = kdKelasHead;
|
|
}
|
|
|
|
public short getqkelas() {
|
|
return qkelas;
|
|
}
|
|
|
|
public void setqkelas(short qkelas) {
|
|
this.qkelas = qkelas;
|
|
}
|
|
|
|
public int getKdHistoryLoginI() {
|
|
return kdHistoryLoginI;
|
|
}
|
|
|
|
public void setKdHistoryLoginI(int kdHistoryLoginI) {
|
|
this.kdHistoryLoginI = kdHistoryLoginI;
|
|
}
|
|
|
|
public int getKdHistoryLoginU() {
|
|
return kdHistoryLoginU;
|
|
}
|
|
|
|
public void setKdHistoryLoginU(int kdHistoryLoginU) {
|
|
this.kdHistoryLoginU = kdHistoryLoginU;
|
|
}
|
|
|
|
public int getKdHistoryLoginS() {
|
|
return kdHistoryLoginS;
|
|
}
|
|
|
|
public void setKdHistoryLoginS(int kdHistoryLoginS) {
|
|
this.kdHistoryLoginS = kdHistoryLoginS;
|
|
}
|
|
|
|
public Set<MapRuanganToKelasM> getMapRuanganToKelasMSet() {
|
|
return mapRuanganToKelasMSet;
|
|
}
|
|
|
|
public void setMapRuanganToKelasMSet(Set<MapRuanganToKelasM> mapRuanganToKelasMSet) {
|
|
this.mapRuanganToKelasMSet = mapRuanganToKelasMSet;
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
*/ |