Page 1 of 1

About Question enthuware.oce-jpad.v6.2.496 :

Posted: Wed Sep 23, 2015 7:05 am
by romsky
What is about static and final fields?

Re: About Question enthuware.oce-jpad.v6.2.496 :

Posted: Wed Sep 23, 2015 10:26 pm
by admin
What about them?
static fields do not really belong to an "entity" so no question about its persistence. (It will not be persisted).
final is an illegal modifier for persistent fields. Section 2.1:
No methods or persistent instance variables of the entity class may be final.