0 Replies Latest reply on Oct 15, 2002 11:01 AM by Sandeep Dixit

    Is it a valid practise?

    Sandeep Dixit Newbie


      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?