|
|
@@ -12,6 +12,15 @@ import java.time.LocalDateTime |
|
|
|
@Table(name = "bom") |
|
|
|
@Entity |
|
|
|
open class Bom : BaseEntity<Long>() { |
|
|
|
@Column |
|
|
|
open var isDark: Int? = null |
|
|
|
|
|
|
|
@Column |
|
|
|
open var isFloat: Boolean? = null |
|
|
|
|
|
|
|
@Column |
|
|
|
open var isDense: Int? = null |
|
|
|
|
|
|
|
@ManyToOne |
|
|
|
@JoinColumn(name = "itemId") |
|
|
|
open var item: Items? = null |
|
|
@@ -45,6 +54,9 @@ open class Bom : BaseEntity<Long>() { |
|
|
|
@JoinColumn(name = "uomId") |
|
|
|
open var uom: UomConversion? = null |
|
|
|
|
|
|
|
@Column(name = "excelUom", length = 255) |
|
|
|
open var excelUom: String? = null |
|
|
|
|
|
|
|
@JsonManagedReference |
|
|
|
@OneToMany(mappedBy = "bom", cascade = [CascadeType.ALL], orphanRemoval = true) |
|
|
|
open var bomMaterials: MutableList<BomMaterial> = mutableListOf() |
|
|
|