Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ejb 3 annotations

 
peter cooke
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can the various EJB 3 annotations be in the java doc comments or not? Most of the examples I am seeing have the "@annotation" not in the java doc comment, but I thought all the @ stuff was supposed to be in the javadoc comment.

Just trying to wrap my mind about what needs to happen.


 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Peter,
JavaDoc attributes go in the comments. This is common in Java 1.4. Java 5 annotations do not go in the comments. They are compile time constructs and go in the code.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic