Create MapProdukPaketToProduk.java
Pembuatan tabel mapping breakdown paket terhadap paket sebagai produk
This commit is contained in:
parent
349e96f090
commit
c0dde6ebc3
@ -0,0 +1,36 @@
|
||||
package com.jasamedika.medifirst2000.entities;
|
||||
|
||||
import com.jasamedika.medifirst2000.base.BaseTransaction;
|
||||
import com.jasamedika.medifirst2000.helper.Caption;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* @author Salman Manoe
|
||||
* @version 1.0.0
|
||||
* @since 03 Aug 2023
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "mapprodukpakettoproduk_m")
|
||||
public class MapProdukPaketToProduk extends BaseTransaction {
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "produkpaketfk")
|
||||
@NotNull(message = "Produk paket tidak boleh kosong")
|
||||
@Caption(value = "Produk paket")
|
||||
private Produk produkPaket;
|
||||
|
||||
@Column(name = "produkpaketfk", insertable = false, updatable = false, nullable = false)
|
||||
private Integer produkPaketId;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "produkfk")
|
||||
@NotNull(message = "Produk tidak boleh kosong")
|
||||
@Caption(value = "Produk")
|
||||
private Produk produk;
|
||||
|
||||
@Column(name = "produkfk", insertable = false, updatable = false, nullable = false)
|
||||
private Integer produkId;
|
||||
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user