Allow null store in inventory
This commit is contained in:
@@ -22,7 +22,7 @@ public class Inventory {
|
|||||||
private Product product;
|
private Product product;
|
||||||
|
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
@JoinColumn(name = "store_id", nullable = false)
|
@JoinColumn(name = "store_id", nullable = true)
|
||||||
private Store store;
|
private Store store;
|
||||||
|
|
||||||
@Column(nullable = false)
|
@Column(nullable = false)
|
||||||
|
|||||||
Reference in New Issue
Block a user