114 lines
2.9 KiB
Java
114 lines
2.9 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 MapAngkaToRomawi
|
|
*
|
|
* @author Generator
|
|
*/
|
|
@Entity // @Audited
|
|
@Table(name = "MapAngkaToRomawi_M")
|
|
public class MapAngkaToRomawi extends BaseMaster {
|
|
@NotNull(message = "Format Angka tidak boleh kosong")
|
|
@Column(name = "FormatAngka", nullable = false)
|
|
@Caption(value = "Format Angka")
|
|
private Byte formatAngka;
|
|
|
|
public void setFormatAngka(Byte formatAngka) {
|
|
this.formatAngka = formatAngka;
|
|
}
|
|
|
|
public Byte getFormatAngka() {
|
|
return this.formatAngka;
|
|
}
|
|
|
|
@NotNull(message = "Format Romawi tidak boleh kosong")
|
|
@Column(name = "FormatRomawi", nullable = false, length = 5)
|
|
@Caption(value = "Format Romawi")
|
|
private String formatRomawi;
|
|
|
|
public void setFormatRomawi(String formatRomawi) {
|
|
this.formatRomawi = formatRomawi;
|
|
}
|
|
|
|
public String getFormatRomawi() {
|
|
return this.formatRomawi;
|
|
}
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectMappingFk")
|
|
@NotNull(message = "Kd Mapping tidak boleh kosong")
|
|
|
|
@Caption(value = "Object Mapping")
|
|
private MapAngkaToBulan mapping;
|
|
|
|
public void setMapping(MapAngkaToBulan mapping) {
|
|
this.mapping = mapping;
|
|
}
|
|
|
|
public MapAngkaToBulan getMapping() {
|
|
return this.mapping;
|
|
}
|
|
|
|
@Column(name = "ObjectMappingFk", insertable = false, updatable = false)
|
|
private Integer mappingId;
|
|
|
|
@NotNull(message = "No Urut tidak boleh kosong")
|
|
@Column(name = "NoUrut", nullable = false)
|
|
@Caption(value = "No Urut")
|
|
private Byte noUrut;
|
|
|
|
public void setNoUrut(Byte noUrut) {
|
|
this.noUrut = noUrut;
|
|
}
|
|
|
|
public Byte getNoUrut() {
|
|
return this.noUrut;
|
|
}
|
|
|
|
@NotNull(message = "QMapping tidak boleh kosong")
|
|
@Column(name = "QMapping", nullable = false)
|
|
@Caption(value = "QMapping")
|
|
private Byte qMapping;
|
|
|
|
public void setqMapping(Byte qMapping) {
|
|
this.qMapping = qMapping;
|
|
}
|
|
|
|
public Byte getqMapping() {
|
|
return this.qMapping;
|
|
}
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.mapangkatoromawi_m_id_seq")
|
|
@javax.persistence.SequenceGenerator(name = "public.mapangkatoromawi_m_id_seq", sequenceName = "public.mapangkatoromawi_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
public Integer getId() {
|
|
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
} |