Hi all:
I am still relatively new to llblgen, so please bear with me.
We are running a bilingual site which means that a lot of our data needs to be different language (english and french) for now. Therefore, the db is set up to have a generic entity table and a translation table for the generic entity. For example, we have REGION and REGION_TL, where TL stands for translation. Now, I am trying to have a write code in llblgen that does the following query:
SELECT RT.REGION_ID
,RT.NAME
,RT.DESCRIPTION
,R.CREATE_DATE
,R.CREATE_USER
,R.MODIFY_DATE
,R.MODIFY_USER
FROM REGION R, REGION_TL RT
WHERE R.REGION_ID = RT.REGION_ID
AND RT.LANG = '{0}'
AND R.ACTIVE_YN = 'Y'
Now, I can't map this query into any entity object, at least I don't know how. My other option is to create typedList or create dynamicList on the fly. However, this means that I'd have to create "A LOT" of typedList since a lot of our data has translation.
My question is: Is TypeList the best practice? Has anyone else have a more elegant solution?
Thanks!