[OT] hibernate

José Fernández <[email protected]>
Newsgroups gmane.comp.java.javaspain
Message-ID <[email protected]>
Hola,

He visto que Hibarnate, usando Hibernate-tools, es capaz de generar el 
código java a partir de una base de datos. He seguido paso a paso lo que 
ponen los manuales y no obtengo nada. Lo peor es que ni Ant me da error, 
dice que ha habido éxito en cada build. Copio el script de Ant por si 
alguien sabe ayudarme.


<path id="toolslib">
        <path location="C:/Java/Hibernate/hibernate-tools.jar" />
        <path location="C:/Java/Hibernate/hibernate3.jar" />
        <path location="C:/Java/Hibernate/freemarker.jar" />
        <path location="C:/Java/Oracle/jdbc.driver.jar" />
        <pathelement
                location="C:/Java/Jakarta 
Commons/commons-logging-1.1.1/commons-logging-1.1.1.jar" />
        <pathelement
                location="C:/Java/dom4j/dom4j-1.6.1.jar" />
    </path>
<target name="codeGen">
       
        <taskdef name="hibernatetool"
            classname="org.hibernate.tool.ant.HibernateToolTask"
            classpathref="toolslib" />
        <hibernatetool destdir="${basedir}/src">
            <configuration configurationfile="hibernate.cfg.xml" />
            <hbm2hbmxml destdir="${basedir}/src" />

            <hbm2java />
        </hibernatetool>
    </target>

gracias.
José
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.