Page 1 of 1

About Question enthuware.oce-jpad.v6.2.563 : Persistent fields of an entity class must be public, private, protected, or package visibility.

Posted: Sat Dec 08, 2012 3:02 pm
by ETS User
According to the explanation persistent fields may be of any visibility because thay are accessed through getters/setters.
But why is the answer to the question:
"Persistent fields of an entity class must be public, private, protected, or package visibility."
still FALSE?
Maybe, I get it wrong, but the explanations says they mustn't...

Re: About Question enthuware.oce-jpad.v6.2.563 : Persistent fields of an entity class must be public, private, protected, or package visibility.

Posted: Sat Dec 08, 2012 3:22 pm
by admin
As per section 2.2 of the JPA specification, "The instance variables of a class must be private, protected, or package visibility independent of whether field access or property access is used".

HTH,
Paul.