-->
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: 3 pk fields mapping table
PostPosted: Sun Jun 07, 2009 3:42 pm 
Newbie

Joined: Wed Apr 08, 2009 7:52 am
Posts: 3
Hi everyone.

I have 3 tables: User, Language, File and a mapping file UserFiles with the fields userID, languageCode, FileID, all 3 creating the composite PK.

The class UserVO has a map containing for each language the list of files the user has, according to the UserFiles table:

private Map<LanguageVO, List<FileVO>> files = new HashMap<LanguageVO, List<FileVO>>();

How can I annotate this map using Hibaernate/JPA annotations?

Thank you.
Cristi


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.