130 lines
3.8 KiB
Java
130 lines
3.8 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
|
|
import java.io.Serializable;
|
|
import org.hibernate.envers.Audited;
|
|
import java.util.HashSet;
|
|
import java.util.Set;
|
|
|
|
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 JenisKomponenIndex
|
|
*
|
|
* @author Generator
|
|
*/
|
|
@Entity // @Audited
|
|
@Table(name = "JenisKomponenIndex_M")
|
|
public class JenisKomponenIndex extends BaseMaster {
|
|
@NotNull(message = "Jenis Komponen Index tidak boleh kosong")
|
|
@Column(name = "JenisKomponenIndex", nullable = false, length = 50)
|
|
@Caption(value = "Jenis Komponen Index")
|
|
private String jenisKomponenIndex;
|
|
|
|
public void setJenisKomponenIndex(String jenisKomponenIndex) {
|
|
this.jenisKomponenIndex = jenisKomponenIndex;
|
|
}
|
|
|
|
public String getJenisKomponenIndex() {
|
|
return this.jenisKomponenIndex;
|
|
}
|
|
|
|
@NotNull(message = "Kd Jenis Komponen Index tidak boleh kosong")
|
|
@Column(name = "KdJenisKomponenIndex", nullable = false, length = 1)
|
|
@Caption(value = "Kode Jenis Komponen Index")
|
|
private String kdJenisKomponenIndex;
|
|
|
|
public void setKdJenisKomponenIndex(String kdJenisKomponenIndex) {
|
|
this.kdJenisKomponenIndex = kdJenisKomponenIndex;
|
|
}
|
|
|
|
public String getKdJenisKomponenIndex() {
|
|
return this.kdJenisKomponenIndex;
|
|
}
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectJenisKomponenIndexHeadFk")
|
|
|
|
@Caption(value = "Object Jenis Komponen Index Head")
|
|
private JenisKomponenIndex jenisKomponenIndexHead;
|
|
|
|
public void setJenisKomponenIndexHead(JenisKomponenIndex jenisKomponenIndexHead) {
|
|
this.jenisKomponenIndexHead = jenisKomponenIndexHead;
|
|
}
|
|
|
|
public JenisKomponenIndex getJenisKomponenIndexHead() {
|
|
return this.jenisKomponenIndexHead;
|
|
}
|
|
|
|
@Column(name = "ObjectJenisKomponenIndexHeadFk", insertable = false, updatable = false)
|
|
private Integer jenisKomponenIndexHeadId;
|
|
|
|
@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 = "QJenis Komponen Index tidak boleh kosong")
|
|
@Column(name = "QJenisKomponenIndex", nullable = false)
|
|
@Caption(value = "QJenis Komponen Index")
|
|
private Byte qJenisKomponenIndex;
|
|
|
|
public void setqJenisKomponenIndex(Byte qJenisKomponenIndex) {
|
|
this.qJenisKomponenIndex = qJenisKomponenIndex;
|
|
}
|
|
|
|
public Byte getqJenisKomponenIndex() {
|
|
return this.qJenisKomponenIndex;
|
|
}
|
|
|
|
/*
|
|
* @JsonManagedReference
|
|
*
|
|
* @OneToMany(fetch=FetchType.LAZY, cascade = CascadeType.ALL,
|
|
* mappedBy="kdjeniskomponenindexhead") private Set<JenisKomponenIndex>
|
|
* JenisKomponenIndexSet = new HashSet<JenisKomponenIndex>();
|
|
*
|
|
* public Set<JenisKomponenIndex> getJenisKomponenIndexSet() { return
|
|
* JenisKomponenIndexSet; }
|
|
*
|
|
* public void setJenisKomponenIndexSet(Set<JenisKomponenIndex>
|
|
* jenisKomponenIndexSet) { JenisKomponenIndexSet = jenisKomponenIndexSet; }
|
|
*/
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.jeniskomponenindex_m_id_seq")
|
|
@javax.persistence.SequenceGenerator(name = "public.jeniskomponenindex_m_id_seq", sequenceName = "public.jeniskomponenindex_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
public Integer getId() {
|
|
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
} |