• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Instance Variable of Entity Class

 
Chaminda Amarasinghe
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Folks,

JPA Spec says

"Instance variables must be private, protected, or package visibility"

Does that mean that instance variables should not be public?

Thanks
Cham
 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes it does.
 
Chaminda Amarasinghe
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Celinio
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic