-->
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: i18n problem: how to clever load language dependend texts
PostPosted: Thu Feb 10, 2005 9:57 am 
Newbie

Joined: Wed Aug 27, 2003 3:47 am
Posts: 4
Location: Frankfurt, Germany
Hi all,

I have a Customer which has a CustomerType (e.g. 1 - Platinum, 2 - Gold, 3 - Silver). I have a table which is stores the i18n texts per language for each CustomerType called CustomerTypeText. The Customer to CustomerType relation is many-to-one and the CustomerType to CustomerTypeText is of course one-to-many (many languages!)

The user logins in with his native language, e.g. german. On an instance of Customer I want to be able to read access the customerTypeText in the user language, with a sort of "general" session-wide filter on the user language.

I have roughly 120 type tables such as CustomerType with each having an attached text table.

Is there a way to elegantly solve this problem with hibernate? Please push me in the right direction.

Cheers
Carsten


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.