-->
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: mapping an entity table to subset tables of the entity
PostPosted: Mon Aug 16, 2004 6:08 pm 
Newbie

Joined: Thu Jul 15, 2004 1:07 pm
Posts: 9
Hibernate version: 2.1

Name and version of the database you are using: MySQL 4.0.16

I have an entity object, a Word with primary key "word_id", and a number of "list" tables, such as "hot_list" or "user_list" which are tables that contain a subset of word_id's.

I've created a "UserList" POJO so I can get a Collection of all the Words reference in the list table, but I'm having a hard time correctly mapping the UserList to the Word (I keep getting null for the word).

At this point I'm looking for a good suggestion on how best to set up the database and do the mapping, such that I can have a table which is a subset of primary keys from another entity table and such that I can remove or add keys to the table.

Jay


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.