posted 15 years ago
Hi,
There is field-based persistence and property-based persistence. In feild-based persistence, annotations are applied directly on instance variable, while in property-based persistence, annotations are applied on getter methods.
I think its all upon your personal taste. Field-based persistence is easier to use but property-based persistence allows data hiding. So its upto you.