Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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
Sheriff
Posts: 35977
422
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.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!