Bonjour,
J'utilise le plugin hibernate tools beta7 sous eclipse 3.2, BD=mysql et en suivant ce tuto:
http://www.hibernate.org/hib_docs/tools ... ugins.html
Mais lors de la génération du code:
Code:
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
<No message>
Apparemment, la liste remplie par les tables de la BD est vide ce qui fait que la lecture plante...
Je me suis pourtant assuré des choses suivantes:
- driver (mysqlconnector) présent dans le classpath de la console configuration
- BD créé, remplie
- ports libres
Aussi voila mon hibernate.cfg.xml:
Code:
<?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>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/test</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
</session-factory>
</hibernate-configuration>
J'ai également testé avec hsqlbd, même constat.
Merci d'avance parce que je séche sec...