rmahajan wrote:
Hibernate version: 2.1
Name and version of the database you are using: Oracle 9i
Hi,
I am facing the same scenario. Have you found the solution for this. If so, please send us the same.
Thanks & Regards
Hi
I have 3 tables defined in Oracle database called, Table A, B and C. Each of them have primary key called a_id, b_id and c_id. There is a joint table defined called ABC which has composite key made up of 3 primary keys: a_id, b_id, c_id. There is no other column defined in table ABC. I am getting can not insert null exceptions while I am saving the object A.
Here are my definitions:
<table name="A" />
<table name="B" />
<table name="C" />
<many2many>
<tablea name="A" />
<jointable name="ABC" generate="false" />
<tableb name="B" />
</many2many>
<many2many>
<tablea name="B" />
<jointable name="ABC" generate="false" />
<tableb name="C" />
</many2many>
<many2many>
<tablea name="A" />
<jointable name="ABC" generate="false" />
<tableb name="C" />
</many2many>
Can anyone please tell me what is wrong and what are alternates ?
Thank you.
Ram Mahajan