124 lines
3.6 KiB
Java
124 lines
3.6 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 JenisAccount
|
|
*
|
|
* @author Generator
|
|
*/
|
|
@Entity // @Audited
|
|
@Table(name = "JenisAccount_M")
|
|
public class JenisAccount extends BaseMaster {
|
|
@NotNull(message = "Jenis Account tidak boleh kosong")
|
|
@Column(name = "JenisAccount", nullable = false, length = 20)
|
|
@Caption(value = "Jenis Account")
|
|
private String jenisAccount;
|
|
|
|
public void setJenisAccount(String jenisAccount) {
|
|
this.jenisAccount = jenisAccount;
|
|
}
|
|
|
|
public String getJenisAccount() {
|
|
return this.jenisAccount;
|
|
}
|
|
|
|
@NotNull(message = "Kd Jenis Account tidak boleh kosong")
|
|
@Column(name = "KdJenisAccount", nullable = false)
|
|
@Caption(value = "Kode Jenis Account")
|
|
private Byte kdJenisAccount;
|
|
|
|
public void setKdJenisAccount(Byte kdJenisAccount) {
|
|
this.kdJenisAccount = kdJenisAccount;
|
|
}
|
|
|
|
public Byte getKdJenisAccount() {
|
|
return this.kdJenisAccount;
|
|
}
|
|
|
|
@NotNull(message = "QJenis Account tidak boleh kosong")
|
|
@Column(name = "QJenisAccount", nullable = false)
|
|
@Caption(value = "QJenis Account")
|
|
private Byte qJenisAccount;
|
|
|
|
public void setqJenisAccount(Byte qJenisAccount) {
|
|
this.qJenisAccount = qJenisAccount;
|
|
}
|
|
|
|
public Byte getqJenisAccount() {
|
|
return this.qJenisAccount;
|
|
}
|
|
|
|
/*
|
|
* @JsonManagedReference
|
|
*
|
|
* @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, mappedBy =
|
|
* "kdjenisaccount") private Set<ChartOfAccount> ChartOfAccountSet = new
|
|
* HashSet<ChartOfAccount>();
|
|
*
|
|
* public Set<ChartOfAccount> getChartOfAccountSet() { return
|
|
* ChartOfAccountSet; }
|
|
*
|
|
* public void setChartOfAccountSet(Set<ChartOfAccount> chartOfAccountSet) {
|
|
* ChartOfAccountSet = chartOfAccountSet; }
|
|
*
|
|
* @JsonManagedReference
|
|
*
|
|
* @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, mappedBy =
|
|
* "kdjenisaccount") private Set<IndikatorAccount> IndikatorAccountSet = new
|
|
* HashSet<IndikatorAccount>();
|
|
*
|
|
* public Set<IndikatorAccount> getIndikatorAccountSet() { return
|
|
* IndikatorAccountSet; }
|
|
*
|
|
* public void setIndikatorAccountSet(Set<IndikatorAccount>
|
|
* indikatorAccountSet) { IndikatorAccountSet = indikatorAccountSet; }
|
|
*
|
|
* @JsonManagedReference
|
|
*
|
|
* @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, mappedBy =
|
|
* "kdjenisaccount") private Set<KategoryAccount> KategoryAccountSet = new
|
|
* HashSet<KategoryAccount>();
|
|
*
|
|
* public Set<KategoryAccount> getKategoryAccountSet() { return
|
|
* KategoryAccountSet; }
|
|
*
|
|
* public void setKategoryAccountSet(Set<KategoryAccount>
|
|
* kategoryAccountSet) { KategoryAccountSet = kategoryAccountSet; }
|
|
*/
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.jenisaccount_m_id_seq")
|
|
@javax.persistence.SequenceGenerator(name = "public.jenisaccount_m_id_seq", sequenceName = "public.jenisaccount_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
public Integer getId() {
|
|
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
} |