0 Replies Latest reply on Aug 4, 2010 11:14 AM by Manjunath Changalpet

    wire() and getDefinedInstance()

    Manjunath Changalpet Newbie

      In the genrated home classes, the wire() method uses the getDefinedInstance() on other home classes to get their instance and wire it. Now there is a problem if there are two/more fields using the same home instance.


      For example say that person class has homephone and cellphone reference. In the wire() the phoneHome.getDefinedInstance() will be called for both type of phone. I know it can be solved by creating separate home instances for them.


      My question is there any usual/standard way of handing this situation?


      Thanks
      Manju