-->
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: Translatable Objects (Table duplication)
PostPosted: Fri Mar 14, 2008 9:53 am 
Newbie

Joined: Mon Mar 10, 2008 8:55 am
Posts: 9
Hi,

I need to make every mapped class in my application translatable. I got a proposal to create a duplicate table and create a OneToMany relation from the main object to the translated records. (f.e. User -> User_en, User_nl, ...)

I think it's quite a waste of time to create a subclass for every language. Is there any way I can duplicate the table ? Using an annotation or so ?

At first I thought @SecondaryTable would be my answer .. but it doesn't really duplicate ...

Any other suggestions about translatable objects are welcome ;)

I'm using hibernate version: 3.0.0


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.