wood burning stoves*
The moose likes EJB and other Java EE Technologies and the fly likes difference between annotations Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "difference between annotations" Watch "difference between annotations" New topic
Author

difference between annotations

Goran Markovic
Ranch Hand

Joined: Sep 26, 2008
Posts: 399
What is the difference between class-level annotations and field/setter annotations? Or, in what case, or what for, I should performed class level annotation (field/setter annotations are clearly explained and understandable)?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9957
    
163

Slobodan,

Which specific annotation are you looking at? Not all annotations can be applied at both class level and field/method level.


[My Blog] [JavaRanch Journal]
Goran Markovic
Ranch Hand

Joined: Sep 26, 2008
Posts: 399
Hi. I was thinking on @EJB annotation particularly.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: difference between annotations
 
Similar Threads
Top level Class
Dependency Injection: Field injection and Setter Injection.
Injection at Class Level
clarifiaction needed on DI and JNDI
The place where we define Annotations inside the EJB Bean class