|
|
@@ -2,6 +2,7 @@ package com.ffii.fpsms.modules.master.entity |
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonManagedReference |
|
|
|
import com.ffii.core.entity.BaseEntity |
|
|
|
import com.ffii.fpsms.modules.stock.entity.Inventory |
|
|
|
import jakarta.persistence.* |
|
|
|
import jakarta.validation.constraints.NotNull |
|
|
|
import java.time.LocalDateTime |
|
|
@@ -45,4 +46,12 @@ open class Items : BaseEntity<Long>() { |
|
|
|
@JsonManagedReference |
|
|
|
@OneToMany(mappedBy = "item", cascade = [CascadeType.ALL], orphanRemoval = true) |
|
|
|
open var itemUoms: MutableList<ItemUom> = mutableListOf() |
|
|
|
|
|
|
|
@JsonManagedReference |
|
|
|
@OneToMany(mappedBy = "item", cascade = [CascadeType.ALL], orphanRemoval = true) |
|
|
|
open var inventories: MutableList<Inventory> = mutableListOf() |
|
|
|
|
|
|
|
@JsonManagedReference |
|
|
|
@OneToOne(mappedBy = "item", cascade = [CascadeType.ALL], orphanRemoval = true) |
|
|
|
open var bom: Bom = Bom() |
|
|
|
} |