product.java
@OneToMany(cascade=CascadeType.ALL,fetch=FetchType.LAZY,mappedBy = "createProduct")
private List<CreateQuantity> quantities;
Quantity.java
@ManyToOne
@JoinColumn(name="productID")
private CreateProduct createProduct;
product.java
@OneToMany(cascade=CascadeType.ALL,fetch=FetchType.LAZY,mappedBy = "createProduct")
private List<CreateQuantity> quantities;
Quantity.java
@ManyToOne
@JoinColumn(name="productID")
private CreateProduct createProduct;
Comments
Post a Comment