I'm getting quite stuck with this. I need to create a mapping for a very simple table with a composite primary key. Every way i have tried has given me errors. Here is the table.
Code:
create table z@ifmpsgl.ifmpsglx
(
m_admin_div char(10) not null,
m_finance_div char(10) not null,
m_unit char(10) not null,
m_nature char(10) not null,
p_business_unit char(5) not null,
p_account char(10),
p_dept char(10),
p_project char(15),
p_product char(6),
p_affiliate char(5),
constraint z@ifmpsgl.ifmpsglx_pk primary key
(
m_admin_div,
m_finance_div,
m_unit,
m_nature
)
);
Could someone provide an example hbm.xml file for this. I'm trying to justify dumping our in-house mapping system (written by me) for Hibernate. So far i'm failing.
Please help.
Darren.