one to many jpa : one product have many Quantity

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