-->
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 tables holding fixed values
PostPosted: Wed Jul 28, 2004 5:48 am 
Newbie

Joined: Wed Jun 16, 2004 8:26 am
Posts: 19
Hi all,

im my database i have tables, that only holdes fixed names for the usage in other tables.

These tables are rearly updated (only from a dba)

Example
Quote:
table: d_status
contains: installed in test-environment, not installed, installed in prod-environment

at update/insert in other tables i refer to this fixed vales.

What is the best way to map these tables in hibernate?

Do i need an surrogate key?
(or defining the name as unique and as PK ?)

Do i need an association to these table ?
(sounds too compicated for this purpose)

_________________
Have Fun!

Torsten


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.