0 Replies Latest reply on Feb 1, 2004 11:46 AM by Morten Jensen-Hole

    DVC vs. Transfer Object

    Morten Jensen-Hole Newbie

      Why would I use Data Value Classes instead of Transfer Object?

      For both strategies I have to write a class ( ContactInfo.java )

      I can see that you can declarative map the CMP fields to database columns but are there other benefits?

      Is it possible to assemble a DVC from different tables?
      I have a table named houlshold, it has columns for mother and father (M_Name, F_Name). In my abstract schema I really would like to have 2 objects (Mother and Father extending Person) that I could call by using HouseholdHome.mother(), HouseholdHome.father() and returning a Person. maybe this is too much logic for a entity bean??