-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Problem with multiple PK columns association set
PostPosted: Fri Jun 03, 2005 3:51 pm 
Newbie

Joined: Fri Jun 03, 2005 3:40 pm
Posts: 7
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!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.