-->
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.  [ 3 posts ] 
Author Message
 Post subject: multilingual/multi-language table design question
PostPosted: Fri Mar 26, 2004 8:52 am 
Newbie

Joined: Fri Mar 26, 2004 8:44 am
Posts: 10
I have the following table design:

table manufacturer (
id BIGINT,
sales DECIMAL(14,9),
deleted TINYINT
)
key: id

table manufacturer_locale (
id BIGINT,
manufacturer_id BIGINT,
language VARCHAR(5),
identifier VARCHAR(100),
description TEXT
)
keys: manufacturer_id, language

Should I create two separate objects for the main objects and its localized extension or is there some easy way to have one object containing both
(which means in fact the object has two keys: manufacturer_id, language).

Can someone provide a sample of how this mapping could be done most effectively?

Thx alot
Joe The Quick.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 08, 2005 7:01 am 
Newbie

Joined: Fri Apr 08, 2005 6:44 am
Posts: 5
Hi, the same problem as described above for me.

Is there any "best practise" hibernate solution for this model?
Thanks!

Best regards
Frank


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 08, 2005 8:42 am 
Newbie

Joined: Fri Apr 08, 2005 6:44 am
Posts: 5
Edit to the last post:

there are several posts regarding this issue:

Multilanguage DB, with another SQL Concept
http://forum.hibernate.org/viewtopic.ph ... tilanguage

same question as me (last post)
http://forum.hibernate.org/viewtopic.ph ... tilanguage

But currently I cannot find a given Answer in this forum, a "hibernate best practise" for this case.

Best regards
Frank


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.