-->
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: Locale mapping (again) - insights appreciated
PostPosted: Tue Nov 30, 2004 11:42 am 
Newbie

Joined: Tue Aug 24, 2004 8:41 am
Posts: 15
Location: Amersfoort, the Netherlands
hi everyone,

Our development team has been thinking about storing mutlilanguage product data in a database. We are thinking about two ways of mapping Locale data to the database:

1. With an seperate LocaleData object, which maps to its own table.
2. The localized data is stored in one string. This is added in a varchar to the table.

The object would look somewhat like this:

Product:
- int getId();
- String getTitle(Locale l);
- String getDescription(Locale l);

The first would be neater normalization-wise. The second, though quite ugly, is faster, since a join operation on two huge tables takes a lot of time. What kind of approch would you use? I'd like to know what other people used as a solution. I'm here to learn :)

Thanks,
Vincent


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 30, 2004 11:45 am 
Expert
Expert

Joined: Tue Oct 05, 2004 9:45 am
Posts: 263
there's a blog from gavin about i18n. don't know if you've allready found it ..

http://blog.hibernate.org/cgi-bin/blosx ... 06/23#i18n

gtx
curio


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 01, 2004 4:39 am 
Newbie

Joined: Tue Aug 24, 2004 8:41 am
Posts: 15
Location: Amersfoort, the Netherlands
curio wrote:
there's a blog from gavin about i18n. don't know if you've allready found it ..

http://blog.hibernate.org/cgi-bin/blosx ... 06/23#i18n

gtx
curio


Thanks for the link, I have not seen that one before. The suggestion Gaven King uses to internationalize labels is good for user interfaces, but not very helpful for large databases in which each product has multiple properties with internationalized text. I'm looking for a solution that is able to handle huge amounts of information.


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.