By rick
via oracle.com
Published: May 31 2008 / 14:32
![]() | |
| HTML5 Canvas | |
| Written by: Simon Sarris | |
| Featured Refcardz: Top Refcardz: | |
| 150+ Refcardz Available · Get them all | |
By rick
via oracle.com
Published: May 31 2008 / 14:32
Comments
Jakob Jenkov replied ago:
I must say, that I disagree with the articles argument about annotating fields rather than getters and setters. By using getter / setter annotation you can specify that a field is to be read from DB (annotate the setter), but never written (don't annotate getter). You can also split a db-field into two fields inside a setter, and join two object fields into one in a getter. In general I personally find using getters / setters a much more flexible mechanism when working with persistence.
Voters For This Link (22)
Voters Against This Link (0)