I want to change to Structure from Entity.
There is an entity A and a struct that has the same structure as entity A.
There is an entity B and a struct that has the same structure as entity B.
There is an entity C and a struct that has the same structure as entity C.
I don't want create n pieces of logic.
Something like generic programming.
Java
public static T_To change(T_From in_param, Class toClass)
C#
static void Change(ref T_From in_param, ref T_To out_param)
For example, as an internal processing approach,
BeanUtils.copyProperties or
Jackson's objectMapper.readValue(jsonString, toClass)
I'm thinking of using a similar Function and Forge that can also be used in Outsystem.
Hi,
OutSystems does not have this generic concept in their visual language. You need to assign the entity record to structure per entity.
Regards,
Daniel
It seems impossible. . thank you.