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]
Problems with Session and transaction handling?
Read this:
http://hibernate.org/42.html
Hi
I have a relationship like so
Bank account has a contact
we have decided to map bank account as a composite-element
now the thing is when I delete bank account I want to be able to delete its contact as well
so in the compositeelement defn
<composite-element class="BankAccount" >
<many-to-one name="bankContact" column="ContactId" unique="true" class="Contact" cascade="all" />
</composite-element>
so if I make the bankaccount contact to null it does not cascade and delete the entry in the contact table...
Same goes with when I delete the bank account I want hte bank contact purged as well but I am able to delete the bank account but still have a entry for the bank contact
Any ideas
Regards
Subu