• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is field or property based annotation same

 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I read there are 2 ways to use annotatin in EJB 3.
field based anotation which we annotate instance variables.
Property based annotation is annotate getters.
Anyway my prblem is that getters returns the values of instance variables.
then why we use 2 ways?
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's a good explanation about it here
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic