facebook

[Closed] Bug with Xdoclet for Hibernate and list tag ?

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #244797 Reply

    antoine
    Member

    Hi,

    I’m using ME 4.1M2 on windows XP with JDK 1.5.0_05 and eclipse 3.1.1 (build M20050929-0840). Eclipse and ME are fresh install.

    I started using xdoclet to manage my hibernate mapping files. Everything is ok except when I declare a list like this :

    /**
         * 
         * @hibernate.list cascade="all"
         * @hibernate.collection-key
         * column="TEACHERID"
         * @hibernate.collection-index 
         * column="ind"
         * @hibernate.collection-one-to-many 
         * class="edu.essec.pwp.bean.Diploma"
         */
    

    With this I obtain a strange entry in my hibernate mapping file :

    
          <list
                role="diplomas"
                lazy="false"
                cascade="all"
            >
    
                <key
                    column="TEACHERID"
                >
                </key>
    
                <index
                    column="ind"
                />
    
                <one-to-many
                      class="edu.essec.pwp.bean.Diploma"
                />
     </list>
    

    The tag list has a “role” attribute instead of “name”. As the role attribute doesn’t exist in hibernate dtd I wonder where does it come from.
    When I change role to name in my mapping file, everything is ok and my app works perfectly.

    Any clue ?

    Antoine

    #244828 Reply

    Riyad Kalla
    Member

    Antoine,
    This is an XDoclet bug: http://opensource2.atlassian.com/projects/xdoclet/browse/XDT-1082

    Unfortunately doesn’t look like they are going to fix it (current status WON’T FIX).

    #244855 Reply

    antoine
    Member

    Thank you for the answer.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: [Closed] Bug with Xdoclet for Hibernate and list tag ?

You must be logged in to post in the forum log in