Hi,
I was trying with your solution but got stuck in middle due to some other error.
It will be very helpful if you can tell me whats going wrong.
I am stuck with the following error
Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]
which occurs because of my composite-id
Situation is as follows : -
I have a two tables and a third table with their many-to-many relationship
The third table however has some extra columns.
So i created a separate entity class and hbm.xml for the third table.
In my third table i have primary key (which is combination of three keys from three different tables)
hence in my hbm.xml i created <composite-id> for that primary key.
Also a separate
java file for that composite-id.
It looks like this:
<composite-id name="assignedMarketId" class="hibernate.AssignedMarketId">
<key-property name="custId" column="customerId" type="java.lang.Integer" length="10" ></key-property>
<key-property name="prodId" column="prodId" type="java.lang.Integer"></key-property>
<key-property name="mkId" column="mkId" type="java.lang.Integer"></key-property>
</composite-id>
where AssignedMarketId is a separate class with all above Id's (Getter and Setter)
but still i am getting error
Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer] at line <key-property>
If i remove this execution proceeds further.
I searched the net but could not find any pointers in the direction.
Can anyone please let me know if i am missing something?
Thanks in Advance
Kashwini