4 Replies Latest reply on May 26, 2006 7:12 PM by pablojavierpy

    hibernate.cfg.xml xdoclet problems

    profet

      I am trying to generate a hibernate.cfg.xml file using the JBossIDE XDoclet Configurations panel.

      It generates fine... but generates the document with a DTD of 2.0 instead of 3.0.

      According to the documentation here: http://xdoclet.sourceforge.net/xdoclet/ant/xdoclet/modules/hibernate/HibernateCfgSubTask.html

      2.0 is the default when 3.0 is not entered as the version.

      While the "hibernate" task has a "Version" property, the "hibernatecfg" task does not. How do I go about changing the DTD without a version property? Is this a bug?

        • 1. Re: hibernate.cfg.xml xdoclet problems
          profet

          bump...

          anyone?

          • 2. Re: hibernate.cfg.xml xdoclet problems
            natulin

            Hello! Sory for my english.

            I try to explain how i solve that problem:


            First go to de path where are the plugins to your eclipse

            Then search inside this plugin:

            org.jboss.ide.eclipse.xdoclet.run_1.5.X -> resources -> y en reference.xml

            In that file references.xml find:








            ........


            And then add this inside tags

            -Reboot your eclipse and then delete de task hibernatecfg you have configurate.

            -Add and configurate again.

            When you add again de hibernatecfg you can observe the property version is aggregate. Put 3.0, generate XDoclet and list.

            Nati Q

            • 3. Re: hibernate.cfg.xml xdoclet problems
              natulin

              Hello! Sory for my english.

              I try to explain how i solve that problem:


              First go to de path where are the plugins to your eclipse

              Then search inside this plugin:

              org.jboss.ide.eclipse.xdoclet.run_1.5.X -> resources -> y en reference.xml

              In that file references.xml find:

              The element name="hibernatecfg"


              And then add this inside tags add the attribute name="version" used="false"

              -Reboot your eclipse and then delete de task hibernatecfg you have configurate.

              -Add and configurate again.

              When you add again de hibernatecfg you can observe the property version is aggregate. Put 3.0, generate XDoclet and list.

              Nati Q

              • 4. Re: hibernate.cfg.xml xdoclet problems
                pablojavierpy

                Worked for me!

                Thanks a lot for the tip.