Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Chapter 3 mixedAccess documentation  RSS feed

 
Himai Minh
Ranch Hand
Posts: 1572
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, in chapter 3 mixedAccess example,

For the property access, the getter (getPhoneNumberForDb) is for saving the phone number to PHONE column in the DB table.
On the other hand, the setter (setPhoneNumberForDb) is for retrieving the phone number from the DB.

On the other hand, for the field access, the setter is for saving to DB the getter is for retrieving from DB.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!