Salman Manoe bbb5a40c85 Update domain entity
Penerapan lombok untuk mengurangi boilerplate code
2025-02-19 15:49:37 +07:00

70 lines
1.9 KiB
Java

package com.jasamedika.medifirst2000.entities;
import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.util.Date;
/**
* class PeriodeAccount
*
* @author Generator
*/
@Getter
@Setter
@Entity
@Table(name = "PeriodeAccount_T")
public class PeriodeAccount extends BaseTransaction {
@ManyToOne
@JoinColumn(name = "ObjectJenisAccountFk")
@NotNull(message = "Object Jenis Account Harus Diisi")
@Caption(value = "Object Jenis Account")
private JenisAccount kdjenisaccount;
@Column(name = "ObjectJenisAccountFk", insertable = false, updatable = false)
private Integer ObjectJenisAccountId;
@Caption(value = "Kode Periode Account")
@Column(name = "KdPeriodeAccount", nullable = false)
private Integer kdperiodeaccount;
@ManyToOne
@JoinColumn(name = "ObjectRuanganFk")
@NotNull(message = "Object Ruangan Harus Diisi")
@Caption(value = "Object Ruangan")
private Ruangan kdruangan;
@Column(name = "ObjectRuanganFk", insertable = false, updatable = false)
private Integer ObjectRuanganId;
@Caption(value = "Keterangan Lainnya")
@Column(name = "KeteranganLainnya", length = 150)
private String keteranganlainnya;
@ManyToOne
@JoinColumn(name = "NoClosingFk")
@Caption(value = "No Closing")
private StrukClosing noclosing;
@Column(name = "NoClosingFk", insertable = false, updatable = false)
private String NoClosingId;
@Caption(value = "Periode Account")
@Column(name = "PeriodeAccount", nullable = false, length = 75)
private String periodeaccount;
@Caption(value = "Tanggal Akhir Periode")
@Column(name = "TglAkhirPeriode", nullable = false)
private Date tglakhirperiode;
@Caption(value = "Tanggal Awal Periode")
@Column(name = "TglAwalPeriode", nullable = false)
private Date tglawalperiode;
}