62 lines
1.6 KiB
Java
62 lines
1.6 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;
|
|
|
|
/**
|
|
* class Bibliography
|
|
*
|
|
* @author Generator
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Entity
|
|
@Table(name = "sdm_BibliographyBuku_T")
|
|
public class Bibliography extends BaseTransaction {
|
|
@Column(name = "Nomor", nullable = false, length = 100)
|
|
@Caption(value = "Nomor")
|
|
private Integer nomor;
|
|
|
|
@Column(name = "JudulBuku", nullable = false, length = 100)
|
|
@Caption(value = "JudulBuku")
|
|
private String judulBuku;
|
|
|
|
@Column(name = "KodeEksemplar", nullable = false, length = 100)
|
|
@Caption(value = "KodeEksemplar")
|
|
private Integer kodeEksemplar;
|
|
|
|
@Column(name = "NamaPengarang", nullable = false, length = 100)
|
|
@Caption(value = "NamaPengarang")
|
|
private String namaPengarang;
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "TipeKoleksiFk")
|
|
@NotNull(message = "Tipe Koleksi Harus Diisi")
|
|
@Caption(value = "Tipe Koleksi")
|
|
private TipeKoleksi tipeKoleksi;
|
|
|
|
@Column(name = "TipeKoleksiFk", insertable = false, updatable = false)
|
|
private Integer tipeKoleksiId;
|
|
|
|
@Column(name = "Edisi", nullable = false, length = 100)
|
|
@Caption(value = "Edisi")
|
|
private String edisi;
|
|
|
|
@Column(name = "ISSN", nullable = false, length = 100)
|
|
@Caption(value = "ISSN")
|
|
private String ISSN;
|
|
|
|
@Column(name = "TahunTerbit", nullable = false, length = 100)
|
|
@Caption(value = "TahunTerbit")
|
|
private Integer tahunTerbit;
|
|
|
|
@Column(name = "JumlahHalaman", nullable = false, length = 100)
|
|
@Caption(value = "JumlahHalaman")
|
|
private Integer jumlahHalaman;
|
|
|
|
} |