-->
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: two fields primary key with annotations
PostPosted: Thu Dec 13, 2007 12:06 pm 
Newbie

Joined: Thu Dec 13, 2007 8:18 am
Posts: 3
Hibernate version:2.1.8

xdoclet-hibernate-module 1.2

I'd like to know how can I describe a mapping with annotations for a table whose primary key si composed by two columns and each column is foreign key from other table.

like this:

AlbumSong
-------------------
codalbum (fk album)(pk)
codsong (fk song)(pk)
songnumber
...


Any idea?

Best


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.