This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 9912
    
158

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.
 
Consider Paul's rocket mass heater.
 
subject: difference between annotations
 
Similar Threads
Dependency Injection: Field injection and Setter Injection.
Injection at Class Level
clarifiaction needed on DI and JNDI
Top level Class
The place where we define Annotations inside the EJB Bean class