Hibernate version: 3.1
Mapping documents: included
I have two tables with a M:M relationship that are joined by an association table. That's easy with Hibernate but now I have two attributes on the association table.
How do I map this?
This is the table structure. Composite primary key on association table.
This is the first class/mapping file: ReportList
This is the second class/mapping file: ReportCriteria
Several questions:
i.) From which object do I access the CRITERIA_ORDER and CRITERIA_STATE attributes?
ii.) Do I need a class for the association table?
iii.) If I need a class for the association, does that need a mapping file?
I have pored over sections 8.2 of the Hibernate Reference 3.1.1 but I can't get it to work. Please don't just vaguely point me there. Please write down the mapping file or the parts of the ones I have that are lacking.
Thank you!!!!!
Ty