62 lines
1.5 KiB
Java
62 lines
1.5 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonBackReference;
|
|
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 static javax.persistence.CascadeType.ALL;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Entity
|
|
@Table(name = "PapGigiKiriSatu_T")
|
|
public class PapGigiKiriSatu extends BaseTransaction {
|
|
|
|
@JsonBackReference
|
|
@OneToOne(cascade = ALL)
|
|
@JoinColumn(name = "ObjectPapGigiMulutFk")
|
|
@NotNull(message = "PapGigiMulut tidak boleh kosong")
|
|
private PapGigiMulut papGigiMulut;
|
|
|
|
@Column(name = "ObjectPapGigiMulutFk", columnDefinition = "CHAR(32)", insertable = false, updatable = false, nullable = false)
|
|
private String papGigiMulutId;
|
|
|
|
@Column(name = "sebelas")
|
|
@Caption(value = "sebelas")
|
|
private String sebelas;
|
|
|
|
@Column(name = "duabelas")
|
|
@Caption(value = "duabelas")
|
|
private String duabelas;
|
|
|
|
@Column(name = "tigabelas")
|
|
@Caption(value = "tigabelas")
|
|
private String tigabelas;
|
|
|
|
@Column(name = "empatbelas")
|
|
@Caption(value = "empatbelas")
|
|
private String empatbelas;
|
|
|
|
@Column(name = "limabelas")
|
|
@Caption(value = "limabelas")
|
|
private String limabelas;
|
|
|
|
@Column(name = "enambelas")
|
|
@Caption(value = "enambelas")
|
|
private String enambelas;
|
|
|
|
@Column(name = "tujuhbelas")
|
|
@Caption(value = "tujuhbelas")
|
|
private String tujuhbelas;
|
|
|
|
@Column(name = "delapanbelas")
|
|
@Caption(value = "delapanbelas")
|
|
private String delapanbelas;
|
|
|
|
}
|