Fichier de maping en Hibernate

Résolu
bihakia89 Messages postés 18 Date d'inscription mercredi 8 février 2012 Statut Membre Dernière intervention 21 mai 2012 - 22 févr. 2012 à 11:59
bihakia89 Messages postés 18 Date d'inscription mercredi 8 février 2012 Statut Membre Dernière intervention 21 mai 2012 - 22 févr. 2012 à 14:14
Excusez moi de vous déranger!

je veux creer un fichier de mapping hibernate ,mais lorsque je click sur "refresh"
je recois un message d'erreur "this is most likely due to to the URL not matching the expected value by the JDBC driver. please verify your settings"

3 réponses

bihakia89 Messages postés 18 Date d'inscription mercredi 8 février 2012 Statut Membre Dernière intervention 21 mai 2012
22 févr. 2012 à 14:14
Le Fichier de configuration doit être comme suit:


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"

<hibernate-configuration>
<session-factory>

com.mysql.jdbc.Driver



jdbc:mysql://localhost/Nom_BD


root



org.hibernate.dialect.MySQLDialect


<mapping resource="Etudiant.hbm.xml" />
<mapping resource="Etudiant.hbm" />
</session-factory>
</hibernate-configuration>
3
cormandyr Messages postés 600 Date d'inscription samedi 20 mai 2006 Statut Membre Dernière intervention 8 juillet 2016 11
22 févr. 2012 à 13:39
Salut,

Perso, je ne pourrai pas t'aider, j'y connais rien en Hibernate (ouais je sais, pas de commentaires :p) cependant, je pense qu'un peu de précision pourrait aider...

tu appuies sur refresh??? Heu refresh de quoi?
tu reçois un message d'erreur? Qui est-ce qui te l'envoie?

enfin tu vois quoi ce genre de chose...
0
bihakia89 Messages postés 18 Date d'inscription mercredi 8 février 2012 Statut Membre Dernière intervention 21 mai 2012
22 févr. 2012 à 13:44
Merci bien de ton aide mais c'est déja résolu merci très fort
0
Rejoignez-nous