Hi,
I have two Hibernate Persistant class.
Customer and Product
which are as bellow
Customer.java
Product.java
Now in database i am already haveing 1 customer and 3 product for that customer
now when i load customer object from database and remove one product for that customer.
and then again saves the customer object in database is it possible to remove the product for that database without using sesison.delete(..) method. ?
Bellow is my
test class and output on console
so that you will get clear understanding ...
Test,
java
Console output
There is only an insert query for the new module Reports. but no detele query for removing Campaign Manager module