8 Aug 12:08
Internationalised entities
From: Casey Charlton <casey <at> goinsane.co.uk>
Subject: Internationalised entities
Newsgroups: gmane.comp.programming.domain-driven-design
Date: 2008-08-08 10:10:51 GMT
Subject: Internationalised entities
Newsgroups: gmane.comp.programming.domain-driven-design
Date: 2008-08-08 10:10:51 GMT
Let me give a very basic example ...
I have a News entity ... it has Title and Content and some additional functional properties ... However, when displayed there may be many language versions of the Title/Content
For the sake of information (if it matters), this is being done in ActiveRecord, currently mapping the single EN record onto a table
How could this be best represented?
At a really superfluous level, there could be multiple records per language, and you could just apply a filter when searching ("Language='en') but this would mean the news items were not related to their other language counterparts.
Another way might be to store their resources in linked tables, but this will be the vast majority of the entities in this domain (News, Publications, Content, Reports, Subscriptions, etc)
Another way might be to have the Repository do the "clever" work ... but "clever" is a bit fuzzy ...
Any thoughts?
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___
RSS Feed