Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1238

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-1238
    Summary: hibernatedoclet throws NPE if no hibernate element is specified
       Type: Bug

     Status: Open
   Priority: Minor

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: XDoclet
 Components: 
             Hibernate Module
   Versions:
             1.2.2

   Assignee: xdoclet-devel (Use for new issues)
   Reporter: Ben Litchfield

    Created: Sat, 15 Jan 2005 2:05 PM
    Updated: Sat, 15 Jan 2005 2:05 PM

Description:
I use middlegen to generate hbm files, i just want to use the xdoclet hibernate 
module to generate the jbossservice file and not the mapping files.

When I remove <hibernate version="2.0"/> then I get a null pointer because it 
assumes that it is needed.  I would like to be able to remove this and have it 
not generate the mapping files.

xdoclet.modules.hibernate.HibernateTagsHandler.serviceClassName(HibernateTagsHandler.java:164)

It looks like the following code just needs some protection

        if ("1.1".equals(getHibernateSubTask().getVersion()))
            return "cirrus.hibernate.jmx.HibernateService";
        else
            return "net.sf.hibernate.jmx.HibernateService";

Ben


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
xdoclet-devel mailing list
xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to