posted 16 years ago
I have mapped User --> UserProduct association(one-to-many) in hibernate as follows:
I also have User class and UserProduct classes as follows:
Here is the part of User.hbm.xml that shows the association:
Here is the UserProduct.hbm.xml file.
How do I delete all userProducts for a given User ?
When I load a user in the Hibernate session and do the following:
The user records do not get deleted !
Can someone show me the correct way to modify hibernate associations.