Hey, i´m having a big problem with hibernate trying to map some multiple PK columns table as a set within another table. Let me show an example to make it easier to understand:
TABLE NFS
NUM_NFS ------- is a PK column
SERIE_NFS ----- also a PK column
...(other columns that don´t matter for the example)
TABLE NFS_IT
NUM_NFS ------- is a PK and FK column
SERIE_NFS ----- also a PK and FK column
PNUMBER ------- also a PK and FK column, to another table...
My problem is that i can´t do the mapping, since on the class that should represent table NFS, there is a Set that keeps the NFS_IT itens and i don´t know how to do the key column thing, since it only takes one entry, and i need 2. I´m using hibernate 2.0. some body help me please, this is due next wednesday and i don´t know what else to do!
|