Re: Accessing other entities from DIH

2012-03-10 Thread Mikhail Khludnev
Chamnap, Context's way is kind of experimental as-is approach, and the only way to explore it is use debugger or be ready to debug JavaScript manually. It is not documented well. Common approach is copyfield. With Best Wishes. On Sat, Mar 10, 2012 at 8:24 PM, Chamnap Chhorn wrote: > Thanks Mikh

Re: Accessing other entities from DIH

2012-03-10 Thread Chamnap Chhorn
Thanks Mikhail. Yeah, in this case CopyField is better. I can combine multiple fields into a new field, right? Something like this: Anyway, I might need to access the child entity and parent entity. Can you provide me some examples on how to use context? I'm not a java developer, it's a little

Re: Accessing other entities from DIH

2012-03-10 Thread Mikhail Khludnev
Hello, First of all you can have an access to the context, where the parent entity fields can be obtained from (following your link): The semantics of execution is same as that of a java transformer. The method can have two arguments as in 'transformRow(Map , Context context) in the abstract clas