-->
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: Joining compound primarykey
PostPosted: Thu Apr 17, 2008 3:01 am 
Newbie

Joined: Tue Mar 04, 2008 11:58 am
Posts: 8
zusammengesetzter primärschlüssel.

hey guys,

I'm using JPA with Hibernate and want to join 4 tables with a compound primary key and map this into 1 object. I dont want to have embeded classes or somethng else, only one object!

how can i do this?

Example:

table1: user
pk: number
pk: name
adress

table2: poster
pk: number
pk: name
pk: postcountid
postcount

table3: posts
pk: number
pk: name
pk: postcountid
posts


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.