118 lines
3.2 KiB
Java
118 lines
3.2 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 StatusAccount
|
|
*
|
|
* @author Generator
|
|
*/
|
|
@Entity // @Audited
|
|
@Table(name = "StatusAccount_M")
|
|
public class StatusAccount extends BaseMaster {
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectJenisAccountFk")
|
|
@NotNull(message = "Kd Jenis Account tidak boleh kosong")
|
|
|
|
@Caption(value = "Object Jenis Account")
|
|
private JenisAccount jenisAccount;
|
|
|
|
public void setJenisAccount(JenisAccount jenisAccount) {
|
|
this.jenisAccount = jenisAccount;
|
|
}
|
|
|
|
public JenisAccount getJenisAccount() {
|
|
return this.jenisAccount;
|
|
}
|
|
|
|
@Column(name = "ObjectJenisAccountFk", insertable = false, updatable = false)
|
|
private Integer jenisAccountId;
|
|
|
|
@NotNull(message = "Kd Status Account tidak boleh kosong")
|
|
@Column(name = "KdStatusAccount", nullable = false)
|
|
@Caption(value = "Kode Status Account")
|
|
private Byte kdStatusAccount;
|
|
|
|
public void setKdStatusAccount(Byte kdStatusAccount) {
|
|
this.kdStatusAccount = kdStatusAccount;
|
|
}
|
|
|
|
public Byte getKdStatusAccount() {
|
|
return this.kdStatusAccount;
|
|
}
|
|
|
|
@NotNull(message = "QStatus Account tidak boleh kosong")
|
|
@Column(name = "QStatusAccount", nullable = false)
|
|
@Caption(value = "QStatus Account")
|
|
private Byte qStatusAccount;
|
|
|
|
public void setqStatusAccount(Byte qStatusAccount) {
|
|
this.qStatusAccount = qStatusAccount;
|
|
}
|
|
|
|
public Byte getqStatusAccount() {
|
|
return this.qStatusAccount;
|
|
}
|
|
|
|
@NotNull(message = "Status Account tidak boleh kosong")
|
|
@Column(name = "StatusAccount", nullable = false, length = 30)
|
|
@Caption(value = "Status Account")
|
|
private String statusAccount;
|
|
|
|
public void setStatusAccount(String statusAccount) {
|
|
this.statusAccount = statusAccount;
|
|
}
|
|
|
|
public String getStatusAccount() {
|
|
return this.statusAccount;
|
|
}
|
|
|
|
/*
|
|
* @JsonManagedReference
|
|
*
|
|
* @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, mappedBy =
|
|
* "kdstatusaccount") private Set<ChartOfAccount> ChartOfAccountSet = new
|
|
* HashSet<ChartOfAccount>();
|
|
*
|
|
* public Set<ChartOfAccount> getChartOfAccountSet() { return
|
|
* ChartOfAccountSet; }
|
|
*
|
|
* public void setChartOfAccountSet(Set<ChartOfAccount> chartOfAccountSet) {
|
|
* ChartOfAccountSet = chartOfAccountSet; }
|
|
*/
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.statusaccount_m_id_seq")
|
|
@javax.persistence.SequenceGenerator(name = "public.statusaccount_m_id_seq", sequenceName = "public.statusaccount_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
public Integer getId() {
|
|
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
} |