Hi,
I am using CMP 2.x (abstract getter/setter methods).
My local/remote interface has only one get method getData(), which returns a JavaBean value object. The implementation of getData() is as follows:
- using reflection, I am reading all the getter methods of the Entity Bean and copying the returned values into the setter methods of the JavaBean value object to be returned.
Is this a valid practice? When the getter methods of Entity Bean are internally accessed, do they participate in the transaction of the getData() method? Would this practise interfere with the on-load/on-find strategies?
Thanks,
Sandeep