Bonjour à tous
J'utilise hibernatesynchroniser qui genère mes fichiers mapping et les classes correspondantes à travers une base de données. Le fichier de configuration generés est en version 2. Puisque j'ai la version 3, je change le Doctype mais il ne reconnait pas mes balises <property> et affiche The content of element type "property" must match "(meta*,(column|formula)*,type?)"
Merci d'avance pour vos inteventions!!!!
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
21
22
23
24
25
26
27
28
29
30
31
32
33 <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <hibernate-configuration> <session-factory> <!-- local connection properties --> <property name="connection.url">(The content of element type "property" must match "(meta*,(column|formula)*,type?)") jdbc:mysql://localhost/testdB </property> <property name="connection.driver_class"> com.mysql.jdbc.Driver </property> <property name="connection.username">adminbase</property> <property name="connection.password">******</property> <!-- property name="hibernate.connection.pool_size"></property --> <!-- dialect for MySQL --> <property name="dialect"> org.hibernate.dialect.MySQLDialect </property> <property name="show_sql">false</property> <property name="use_outer_join">true</property> <property name="transaction.factory_class"> org.hibernate.transaction.JDBCTransactionFactory </property> <mapping resource="Personne.hbm" /> <mapping resource="Reservation.hbm" /> <mapping resource="Titre.hbm" /> <mapping resource="Sceance.hbm" /> </session-factory> </hibernate-configuration>
Partager