Hi all,
I have a case as follows:
Table A and table B have many-to-many relationship. The association table AB has (extra) nullable attributes. I tried to use "composite-element" as follows:
AB is modelled as a composite element in A. AB has reference to B.
Now if I delete an entry of AB from A, corresponding entry from table B is not deleted. The cascade="all" option doesn't work in this case.
What could be the reason?
Also can u suggest any other way to model this relationship?
Thanks in advance
-Reshma
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
[b]Hibernate version:[/b]
[b]Mapping documents:[/b]
[b]Code between sessionFactory.openSession() and session.close():[/b]
[b]Full stack trace of any exception that occurs:[/b]
[b]Name and version of the database you are using:[/b]
[b]The generated SQL (show_sql=true):[/b]
[b]Debug level Hibernate log excerpt:[/b]