This question is somewhat related to Hibernate Annotation Placement Question.
But I want to know which is better? Access via properties or access vi
I tend to prefer and to use property accessors:
foo.getId()
without initializing a proxy (important when using Hibernate, until HHH-3718 get resolved).Drawback:
@Transient
around there.