Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ejb 3 annotations  RSS feed

 
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: 36616
474
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
Boost this thread!