Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:3.2.0rc2
Name and version of the database you are using:PostgreSQL 8.0
I have three tables:
Code:
report (id serial not null primary key)
parameter (id serial not null primary key)
report_parameter (report_id integer fk, parameter_id integer fk, required boolean not null default false)
I want to map this into two classes, Report (Integer id, List parameters) and Parameter(Integer id, Boolean required). Is this possible? Or do I have to create a third class to ReportParameter(Report report, Parameter parameter, Boolean required)?
Thanks in advance.