192 lines
5.1 KiB
Java
192 lines
5.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.JsonIgnoreProperties;
|
|
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 KelompokAset
|
|
*
|
|
* @author Generator
|
|
*/
|
|
@Entity // @Audited
|
|
@Table(name = "KelompokAset_M")
|
|
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
|
|
public class KelompokAset extends BaseMaster {
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectAccountFk")
|
|
|
|
@Caption(value = "Object Account")
|
|
private ChartOfAccount account;
|
|
|
|
public void setAccount(ChartOfAccount account) {
|
|
this.account = account;
|
|
}
|
|
|
|
public ChartOfAccount getAccount() {
|
|
return this.account;
|
|
}
|
|
|
|
@Column(name = "ObjectAccountFk", insertable = false, updatable = false)
|
|
private Integer accountId;
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectDepartemenFk")
|
|
@NotNull(message = "Kd Departemen tidak boleh kosong")
|
|
|
|
@Caption(value = "Object Departemen")
|
|
private Departemen departemen;
|
|
|
|
public void setDepartemen(Departemen departemen) {
|
|
this.departemen = departemen;
|
|
}
|
|
|
|
public Departemen getDepartemen() {
|
|
return this.departemen;
|
|
}
|
|
|
|
@Column(name = "ObjectDepartemenFk", insertable = false, updatable = false)
|
|
private Integer departemenId;
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectJenisAsetFk")
|
|
@NotNull(message = "Kd Jenis Aset tidak boleh kosong")
|
|
|
|
@Caption(value = "Object Jenis Aset")
|
|
private JenisAset jenisAset;
|
|
|
|
public void setJenisAset(JenisAset jenisAset) {
|
|
this.jenisAset = jenisAset;
|
|
}
|
|
|
|
public JenisAset getJenisAset() {
|
|
return this.jenisAset;
|
|
}
|
|
|
|
@Column(name = "ObjectJenisAsetFk", insertable = false, updatable = false, nullable = false)
|
|
private Integer jenisAsetId;
|
|
|
|
@NotNull(message = "Kd Kelompok Aset tidak boleh kosong")
|
|
@Column(name = "KdKelompokAset", nullable = false)
|
|
@Caption(value = "Kode Kelompok Aset")
|
|
private Byte kdKelompokAset;
|
|
|
|
public void setKdKelompokAset(Byte kdKelompokAset) {
|
|
this.kdKelompokAset = kdKelompokAset;
|
|
}
|
|
|
|
public Byte getKdKelompokAset() {
|
|
return this.kdKelompokAset;
|
|
}
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectMetodePenyusutanFk")
|
|
|
|
@Caption(value = "Object Metode Penyusutan")
|
|
private MetodePenyusutan metodePenyusutan;
|
|
|
|
public void setMetodePenyusutan(MetodePenyusutan metodePenyusutan) {
|
|
this.metodePenyusutan = metodePenyusutan;
|
|
}
|
|
|
|
public MetodePenyusutan getMetodePenyusutan() {
|
|
return this.metodePenyusutan;
|
|
}
|
|
|
|
@Column(name = "ObjectMetodePenyusutanFk", insertable = false, updatable = false, nullable = false)
|
|
private Integer metodePenyusutanId;
|
|
|
|
@NotNull(message = "Kelompok Aset tidak boleh kosong")
|
|
@Column(name = "KelompokAset", nullable = false, length = 50)
|
|
@Caption(value = "Kelompok Aset")
|
|
private String kelompokAset;
|
|
|
|
public void setKelompokAset(String kelompokAset) {
|
|
this.kelompokAset = kelompokAset;
|
|
}
|
|
|
|
public String getKelompokAset() {
|
|
return this.kelompokAset;
|
|
}
|
|
|
|
@Column(name = "PersenPenyusutan", nullable = true)
|
|
@Caption(value = "Persen Penyusutan")
|
|
private Double persenPenyusutan;
|
|
|
|
public void setPersenPenyusutan(Double persenPenyusutan) {
|
|
this.persenPenyusutan = persenPenyusutan;
|
|
}
|
|
|
|
public Double getPersenPenyusutan() {
|
|
return this.persenPenyusutan;
|
|
}
|
|
|
|
@NotNull(message = "QKelompok Aset tidak boleh kosong")
|
|
@Column(name = "QKelompokAset", nullable = false)
|
|
@Caption(value = "QKelompok Aset")
|
|
private Byte qKelompokAset;
|
|
|
|
public void setqKelompokAset(Byte qKelompokAset) {
|
|
this.qKelompokAset = qKelompokAset;
|
|
}
|
|
|
|
public Byte getqKelompokAset() {
|
|
return this.qKelompokAset;
|
|
}
|
|
|
|
@Column(name = "RumusPenyusutan", nullable = true, length = 20)
|
|
@Caption(value = "Rumus Penyusutan")
|
|
private String rumusPenyusutan;
|
|
|
|
public void setRumusPenyusutan(String rumusPenyusutan) {
|
|
this.rumusPenyusutan = rumusPenyusutan;
|
|
}
|
|
|
|
public String getRumusPenyusutan() {
|
|
return this.rumusPenyusutan;
|
|
}
|
|
|
|
@NotNull(message = "Umur Ekonomis_ Thn tidak boleh kosong")
|
|
@Column(name = "UmurEkonomis_Thn", nullable = false)
|
|
@Caption(value = "Umur Ekonomis_ Thn")
|
|
private Double umurEkonomis_Thn;
|
|
|
|
public void setUmurEkonomis_Thn(Double umurEkonomis_Thn) {
|
|
this.umurEkonomis_Thn = umurEkonomis_Thn;
|
|
}
|
|
|
|
public Double getUmurEkonomis_Thn() {
|
|
return this.umurEkonomis_Thn;
|
|
}
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.kelompokaset_m_id_seq")
|
|
@javax.persistence.SequenceGenerator(name = "public.kelompokaset_m_id_seq", sequenceName = "public.kelompokaset_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
public Integer getId() {
|
|
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
} |