1 Reply Latest reply on Nov 3, 2009 2:42 AM by jaikiran pai

    Entity - Field-Based Access Vs Property Based Access

    Sandeep Vaid Newbie

      P-230 of EJB3 In Action Book states "If you want to use field-based access, you can declare all your POJO persisted
      data fields public or protected"
      "Even if you used field-based access, we recommend that you make the fields private and expose the fields to be modified
      by getter/setter method."

      The above 2 statements are contradictory... Can we mark our fields private and use them for field-based access ?