public « Property « JPA Q&A





1. Why is "public" not allowed for properties in JPA entities?    stackoverflow.com

The JPA 2.0 specification says on page 22:

The instance variables of a class must be private, protected, or package visibility independent of whether field ...

2. (Xdoclet2) Non public properties?    forum.hibernate.org

gosh. that would be tricky... What Shall I look for? 1. Properties ( tag on getter ) 2. Instance variables ( what if somebody marks instance variable, and property getter? , and instance variables do not need to follow any naming rules... so I can not determine that it is the same property... what with inheritance? normally I shall include properties ...