[XDoclet-JIRA] Created: (XDT-1562) Hibernatedoclet only sees class level tags in the last comment before class declaration

"Mikko Reinikainen (JIRA)" <[email protected]>
Newsgroups gmane.comp.java.xdoclet.devel
Message-ID <[email protected]>
Hibernatedoclet only sees class level tags in the last comment before class declaration
---------------------------------------------------------------------------------------

         Key: XDT-1562
         URL: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1562
     Project: XDoclet
        Type: Bug
  Components: Hibernate Module  
    Versions: 1.2.3    
 Environment: GNU/Linux, maven 1,0.2
 Reporter: Mikko Reinikainen
 Assigned to: xdoclet-devel (Use for new issues) 


I had the following code in User.java:

/**
 * @hibernate.class table="users" lazy="false"
 */
/* TODO add business logic */
public class User {
  ...
}

Hibernatedoclet didn't generate any mapping file from the class. When I moved "@hibernate.class" to the last comment before "public class User", hibernatedoclet generated the mapping file.

I tried different combinations where there is some other comment in between the "@hibernate.class" directive and the class declaration, and hibernatedoclet didn't produce mapping files for them. Only when the last comment was of the type "/** ... @hibernate.class ... */", did hibernatedoclet generate the mapping file.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.