Entity - Field-Based Access Vs Property Based Access
posted 7 years ago
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 ?