| Author |
is field or property based annotation same
|
Samanthi perera
Ranch Hand
Joined: Jan 08, 2010
Posts: 510
|
|
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
Joined: Jul 20, 2005
Posts: 8141
|
|
|
There's a good explanation about it here
|
[My Blog] [JavaRanch Journal]
|
 |
 |
|
|
subject: is field or property based annotation same
|
|
|