-->
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.  [ 2 posts ] 
Author Message
 Post subject: general question regarding OR<
PostPosted: Sat Jan 31, 2009 2:06 am 
Newbie

Joined: Sat Jan 31, 2009 2:00 am
Posts: 3
Hi,

I have a general db mapping question .I have lots of drop downs on my web page and i have stored all the data in db. All the tables for these drop downs don't have any primary key.How can i map these tables using hibernate or JPA.

I did not add any PK for these tables because the rows in these tables are not really entities , in my view all static data in these tables are value objects that don't have any identity .


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 31, 2009 7:58 am 
Senior
Senior

Joined: Thu Jan 08, 2009 3:48 pm
Posts: 168
How are the selected items stored in your objects?
Unless you store them by value a real ID would be helpful so you just have to save the IDs to the objects instead of strings or whatever you use.


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

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.