[jboss-user] [EJB 3.0 Users] - Entity - Field-Based Access Vs Property Based Access

CatchSandeepVaid do-not-reply at jboss.com
Mon Nov 2 12:42:06 EST 2009


 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"
 P-231 
  "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 ?

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263542#4263542

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263542



More information about the jboss-user mailing list