Bookmark Topic Watch Topic
  • New Topic

Entity - Field-Based Access Vs Property Based Access

 
Sandeep Vaid
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Report post to moderator

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 ?
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
Sandeep,

Please do not ask the same question in multiple forums. Let's continue this discussion in your other thread here http://www.coderanch.com/t/469204/EJB-Other-Java-EE-Technologies/java/Entity-Field-Based-Access-Vs
 
    Bookmark Topic Watch Topic
  • New Topic