Bonjour,
je travaille actuellement sur une appli avec Hibernate et mysql sous eclipse,
apres avoir défini la DB, j'ai installé hibernate et ses librairies ainsi que le pugin jdbc pour la connection hibernate-DB. voici mon fichier hibernate-cfg.xml

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
<?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.password">root</property>
        <property name="hibernate.connection.url">jdbc:mysql://localhost:3036/testDB</property>
        <property name="hibernate.connection.username">root</property>
        <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
    </session-factory>
</hibernate-configuration>
mon problème c'est que dans ma console Hibernate-configurations,je ne vois pas ma DB alors que je devrais la voir ainsi que mes tables, et on me dit:

'hibernate.dialect' must be set when no connection available

dans la console:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
2010-11-18 11:51:48,109 WARN Worker-43 org.hibernate.connection.UserSuppliedConnectionProvider - No connection properties specified - the user must supply JDBC connections


merci de votre aide