This content has been marked as final.
Show 1 reply
-
1. Re: Collection Access Best Practices
instinct Feb 24, 2006 6:06 AM (in response to treespace)ejb-3_0-pfd-spec-persistence.pdf wrote:
If the entity has field-based access, the persistence provider runtime accesses instance variables directly.
If the persistence provider does not use the getters and setters I don't see why your accessor methods should not be declared private.
I changedpublic Collection<Contact> getContact() { return contact; }
toprivate Collection<Contact> getContact() { return contact; }