I have a situation where i have to map attributes from business objects to EIS specific keywords. Are there any patterns for such mapping ? For example lets say we have a EIS system such as CICS which consumes a message in form of key value pair separated by some separator . The value of these keys comes from one or more attributes from the business objects . How do we represent this mapping ? Is there any metadata definition or Is there any pattern ? I will illustrate above scenario with an example. Lets say we have a Person object with some attributes as firstName, lastName , Street , House No, City , State , Zip code. When I have to store this object in CICS system the message I have to construct will be FNAME=;LNAME=;ADDR1=;ADDR2;ADDR3=;
I think this is very common problem where the Domain model is different from the data model.
Any suggestions ?
posted 12 years ago
You could try constructing a key/ value map of attribute names and message names and write a helper class which will move the data according to the map.
This may be a little less efficient, but should do the trick. There are big iron solutions available in this area, but these tend to cost.