Bonjour
J'essaie d'utiliser Hibernate Tools pour générer des beans d'un table d'un base Oracle mais je renontre des pbs.
Ma target ANT :
Et mon fichier de config :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 <path id="toolslib"> <path location="${test.dir}/hibernate-tools.jar" /> <path location="${test.dir}/hibernate3.jar" /> <path location="${test.dir}/freemarker.jar" /> <path location="${test.dir}/ojdbc14.jar" /> <path location="${test.dir}/commons-collections-3.2.jar" /> <path location="${test.dir}/commons-logging.jar" /> <path location="${test.dir}/dom4j-1.6.1.jar" /> <path location="${test.dir}/cglib-2.1.3.jar" /> <path location="${test.dir}/hibernate-annotations.jar" /> </path> <taskdef name="hibernatetool" classname="org.hibernate.tool.ant.HibernateToolTask" classpathref="toolslib" /> <target name="testHibernate"> <hibernatetool destdir="${test.dir}/generated"> <jdbcconfiguration configurationfile="${test.dir}/hibernate.cfg.xml"/> <hbm2java/> </hibernatetool> </target>
Et mon répertoire de destination est toujours vide.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory name="test"> <property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property> <property name="hibernate.connection.password">xxx</property> <property name="hibernate.connection.url">jdbc:oracle:thin:@monip:1521:XE</property> <property name="hibernate.connection.username">xxx</property> <property name="hibernate.default_schema">exxe</property> <property name="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</property> </session-factory> </hibernate-configuration> Merci d'avance
Aurais je oublié qqch ?
Merci d'avance
Partager