The following comment has been added to this issue:

     Author: no_ejb
    Created: Fri, 14 Nov 2003 5:20 PM
       Body:
After getting the latest 1.2 beta3 code, I started dig into the code.

Correct me if I am wrong since I am a newbie to XDoctlet. 

In HibernateSubTask.java we can only set one top level class tag 
setHavingClassTag("hibernate.class")

And in the TemplateSubTaks.java 
if (!clazz.getDoc().hasTag(getHavingClassTag(), false)) {
 ...
and in HibernateTagsHandler.java
   if (clazz.getDoc().hasTag("hibernate.class", false)) {
    ...generate mapping

It only looks for one top level class-- hibernate.class.
Here I see two problems. 

Number one is in TemplateSubTask it only allow one top type of top level class. In my 
case here we have two "hibernate.class" and "hibernate.joined-subclass", both of them 
are legal in Hibernate.

Number two is in HibernateTagsHandler it igores all the class if the class is without 
"hibernate.class" so that is why my class got ignored.

I assume the change is not hard? change setHavingClassTag to take an array of tag? But 
I don't know if '<XDtHibernate:forAllSubclasses>' will be impacted since I am not sure 
how that tag works yet.
---------------------------------------------------------------------
View the issue:

  http://opensource.atlassian.com/projects/xdoclet/secure/ViewIssue.jspa?key=XDT-712


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-712
    Summary: joined-subclass doesn't work
       Type: Bug

     Status: Assigned
   Priority: Major

 Time Spent: Unknown
  Remaining: Unknown

    Project: XDoclet
 Components: 
             Hibernate Module
   Versions:
             1.2 Beta 3

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

    Created: Fri, 14 Nov 2003 3:54 PM
    Updated: Fri, 14 Nov 2003 3:54 PM
Environment: Stand alone Java app in JDK1.4.2 and w2k

Description:
I have the following xdoclet for Hibernate

/**
* @hibernate.joined-subclass
*   table="...."
*   proxy="...."
*   extends="parentclass"
* @hibernate.joined-subclass-key
**/
public class ....{
...
}

When I ran through XDoclet 1.2 beta3. It completely ignored this class. This is a 
problem since joined-subclass can be the toplevel class and I believe the tag need to 
expanded to support 'extend' keyword too.




---------------------------------------------------------------------
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



-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to