facebook

XDoclet Hibernate 2.0 DTD?

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

    Robert Baty
    Member

    Hello, I am using Eclipse 3.0.2 Build id: 200503110845 with MyEclipse 3.8.4 Build id: 200501171200-3.8.4 on Windows XP Pro.

    I have been using the XDoclet capabilities of the IDE to generate Hibernate hbm.xml files. This has worked great so far but I recently noticed that the Hibernate DTD that is generated in the hbm.xml file is the following:

    <!DOCTYPE hibernate-mapping PUBLIC
    “-//Hibernate/Hibernate Mapping DTD 1.1//EN”
    http://hibernate.sourceforge.net/hibernate-mapping-1.1.dtd”&gt;

    Is there a way to have XDoclet generate the 2.0 DTD instead? Is there a setting or an update to the XDoclet plugin?

    Thanks,
    rjb

    #228825 Reply

    Greg
    Member

    Here are the steps to setting the right hibernate version.

    -Open MyEclipse-XDoclet properties page.
    -Select the “Standard Hibernate” doclet.
    -Then click on the “hibernate” subtask.
    -Scroll the properties view down until you get to Version.
    -Set Version to 2.0.
    -Then hit OK and re-run XDoclet.

    Hope that helps.

    #228871 Reply

    Robert Baty
    Member

    That worked great, thanks!
    rjb

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: XDoclet Hibernate 2.0 DTD?

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