Hi.
I'd like to ask you for help to restore some mistery that I can't figure out for a long time:
I have a table MyTable with
integer id, string name
and a few localized columns that holds a localized strings.
Let they be name_fr,name_ru,.... each representing localized
name
I'd like to map some superclass MyClass and a buch of subclasses MyClass_ru, MyClass_en, each overriding the mapping of name property, mapping it to column appropriate for given language. I do want them to be instances of MyClass but I don't want "from MyClass" to return the subclasses instances, but only the MyClass ones.
Could you please help me with this? Or may be there is a more natural way to solve multilingual problem? The main requirement is to be able to bring a localized strings according to given locale, transparently from user...
Thanks a lot.
|