In my project i have 2 entities related @OneToMany and @ManyToOne. Check these pictures -
My problem-when i delete record from Supplies also delete records from Products but i don't wont it.If i remove CascadeType.ALL and then try this opertion again there will be an error
com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (
shop.products, CONSTRAINTFK65gu3e053fcnl70hwq8vp7b2gFOREIGN KEY (supplies) REFERENCESsupplies(id))
How resolve this problem???

