Bonjour,
J'ai l'exception suivante qui est levée :
Main error :org.hibernate.MappingException: could not instantiate id generator
org.hibernate.MappingException: could not instantiate id generator
Voici mes fichiers de code...

Configuration d'hibernate:
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
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-configuration
    PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
    "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
 
<hibernate-configuration>
    <session-factory >
 
		<!-- local connection properties -->
		<property name="hibernate.connection.url">jdbc:mysql://localhost/dbessai</property>
		<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
		<property name="hibernate.connection.username">guillaume</property>
		<property name="hibernate.connection.password">pelops</property>
		<!-- property name="hibernate.connection.pool_size"></property -->
 
		<!-- dialect for MySQL -->
        <property name="dialect">org.hibernate.dialect.MySQLDialect</property>
 
        <property name="hibernate.show_sql">true</property>
        <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</property>
        <property name="hibernate.current_session_context_class">thread</property>
 
        <mapping resource="TCar.hbm.xml" />
		<mapping resource="TPerson.hbm.xml" />
</session-factory>
</hibernate-configuration>
Le fichier de mapping de ma classe:
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
34
35
36
37
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
	"-//Hibernate/Hibernate Mapping DTD//EN"
	"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >
 
<hibernate-mapping package="fr.exemple.value">
	<class
		name="Person"
		table="TPerson"
	>
		<meta attribute="sync-DAO">false</meta>
		<id
			name="Id"
			type="integer"
			column="person_id"
		>
			<generator class="sequence"/>
		</id>
 
		<property
			name="Name"
			column="name"
			type="string"
			not-null="true"
			length="50"
		/>
		<property
			name="Age"
			column="age"
			type="integer"
			not-null="false"
			length="11"
		/>
 
 
	</class>	
</hibernate-mapping>
Ma classe Person:
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
package fr.exemple.value;
 
 
 
import fr.exemple.value.Base.BasePerson;
 
 
 
 
 
 
 
public class Person extends BasePerson {
 
	private static final long serialVersionUID = 1L;
 
 
 
/*[CONSTRUCTOR MARKER BEGIN]*/
 
	public Person () {
 
		super();
 
	}
 
 
 
	/**
 
         * Constructor for primary key
 
         */
 
	public Person (java.lang.Integer id) {
 
		super(id);
 
	}
 
 
 
	/**
 
         * Constructor for required fields
 
         */
 
	public Person (
 
		java.lang.Integer id,
 
		java.lang.String name) {
 
 
 
		super (
 
			id,
 
			name);
 
	}
 
 
 
/*[CONSTRUCTOR MARKER END]*/
 
	public String toString () {
 
	    return "Person(id=" + getId() +
 
	    ",nom=" + getName() +
 
	    ",age=" + getAge() + ")";
 
	}
 
 
 
}
La classe contenant le main:
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package fr.exemple;
 
 
import java.util.List;
import java.util.TreeSet;
 
import org.hibernate.Hibernate;
import org.hibernate.LockMode;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import org.hibernate.tool.hbm2ddl.SchemaExport;
 
//import fr.exemple.value.*;
import fr.exemple.value.Person;
import fr.exemple.value.Car;
 
public class EssaiHibernate {
    // configuration: parametres + mapping
    public Configuration config = null;
 
    // Usine à fabriquer des sessions
    public SessionFactory factory = null;
 
    EssaiHibernate() {
        // par défaut hibernate.cfg.xml est utilisé
        config = new Configuration();
        config.configure();
        factory = config.buildSessionFactory();
    }
 
    // les méthodes
 
    public static void main(String[] args) {
        try {
            EssaiHibernate maBase = new EssaiHibernate();
            // appels aux méthodes
 
            maBase.readPerson(1000);
        } catch (Exception e) {
            System.err.println("Main error :" + e);
            e.printStackTrace();
        }
    }
 
    //  Lecture d'une personne
    public void readPerson(int key) {
    	Session session = factory.getCurrentSession();
    	session.beginTransaction();
    	Person p = new Person();
    	session.load(p, String.valueOf(key));
    	//session.load(p,key);
    	System.out.println("Lecture de " + p);
    	session.getTransaction().commit();
    }
 
 
}
Et enfin ma sortie console (sous eclipse) :
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
00:11:01,156  INFO Environment:500 - Hibernate 3.2.0
00:11:01,465  INFO Environment:533 - hibernate.properties not found
00:11:01,737  INFO Environment:667 - Bytecode provider name : cglib
00:11:01,831  INFO Environment:584 - using JDK 1.4 java.sql.Timestamp handling
00:11:03,260  INFO Configuration:1350 - configuring from resource: /hibernate.cfg.xml
00:11:03,263  INFO Configuration:1327 - Configuration resource: /hibernate.cfg.xml
00:11:07,730 DEBUG DTDEntityResolver:38 - trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd]
00:11:07,921 DEBUG DTDEntityResolver:40 - recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/
00:11:07,989 DEBUG DTDEntityResolver:50 - located [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd] in classpath
00:11:08,654 DEBUG Configuration:1311 - hibernate.connection.url=jdbc:mysql://localhost/dbessai
00:11:08,658 DEBUG Configuration:1311 - hibernate.connection.driver_class=com.mysql.jdbc.Driver
00:11:08,662 DEBUG Configuration:1311 - hibernate.connection.username=guillaume
00:11:08,666 DEBUG Configuration:1311 - hibernate.connection.password=pelops
00:11:08,668 DEBUG Configuration:1311 - dialect=org.hibernate.dialect.MySQLDialect
00:11:08,669 DEBUG Configuration:1311 - hibernate.show_sql=true
00:11:08,912 DEBUG Configuration:1311 - hibernate.transaction.factory_class=org.hibernate.transaction.JDBCTransactionFactory
00:11:08,913 DEBUG Configuration:1311 - hibernate.current_session_context_class=thread
00:11:09,144 DEBUG Configuration:1510 - null<-org.dom4j.tree.DefaultAttribute@7a84e4 [Attribute: name resource value "TCar.hbm.xml"]
00:11:09,145  INFO Configuration:507 - Reading mappings from resource: TCar.hbm.xml
00:11:09,157 DEBUG DTDEntityResolver:38 - trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd]
00:11:09,159 DEBUG DTDEntityResolver:40 - recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/
00:11:09,161 DEBUG DTDEntityResolver:50 - located [http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd] in classpath
00:11:12,338  INFO HbmBinder:300 - Mapping class: fr.exemple.value.Car -> TCar
00:11:12,518 DEBUG HbmBinder:1270 - Mapped property: Id -> car_id
00:11:12,590 DEBUG HbmBinder:1270 - Mapped property: Type -> type
00:11:12,614 DEBUG HbmBinder:1270 - Mapped property: Owner -> owner
00:11:12,621 DEBUG HbmBinder:1270 - Mapped property: Price -> price
00:11:12,624 DEBUG Configuration:1510 - null<-org.dom4j.tree.DefaultAttribute@26d4f1 [Attribute: name resource value "TPerson.hbm.xml"]
00:11:12,625  INFO Configuration:507 - Reading mappings from resource: TPerson.hbm.xml
00:11:12,631 DEBUG DTDEntityResolver:38 - trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd]
00:11:12,634 DEBUG DTDEntityResolver:40 - recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/
00:11:12,639 DEBUG DTDEntityResolver:50 - located [http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd] in classpath
00:11:12,979  INFO HbmBinder:300 - Mapping class: fr.exemple.value.Person -> TPerson
00:11:12,983 DEBUG HbmBinder:1270 - Mapped property: Id -> person_id
00:11:12,985 DEBUG HbmBinder:1270 - Mapped property: Name -> name
00:11:12,990 DEBUG HbmBinder:1270 - Mapped property: Age -> age
00:11:12,993  INFO Configuration:1465 - Configured SessionFactory: null
00:11:13,001 DEBUG Configuration:1466 - properties: {hibernate.connection.password=pelops, java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, sun.boot.library.path=/usr/lib/java/jre1.5.0_09/lib/i386, java.vm.version=1.5.0_09-b03, hibernate.connection.username=guillaume, java.vm.vendor=Sun Microsystems Inc., java.vendor.url=http://java.sun.com/, path.separator=:, java.vm.name=Java HotSpot(TM) Client VM, file.encoding.pkg=sun.io, user.country=FR, sun.os.patch.level=unknown, java.vm.specification.name=Java Virtual Machine Specification, user.dir=/home/guillaume/workspace/hibernate3, java.runtime.version=1.5.0_09-b03, java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment, hibernate.current_session_context_class=thread, java.endorsed.dirs=/usr/lib/java/jre1.5.0_09/lib/endorsed, os.arch=i386, java.io.tmpdir=/tmp, line.separator=
, java.vm.specification.vendor=Sun Microsystems Inc., os.name=Linux, sun.jnu.encoding=UTF-8, java.library.path=/usr/lib/java/jre1.5.0_09/lib/i386/client:/usr/lib/java/jre1.5.0_09/lib/i386:/usr/lib/java/jre1.5.0_09/../lib/i386:/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre/lib/i386:/usr/lib/mozilla-1.7.13, java.specification.name=Java Platform API Specification, java.class.version=49.0, sun.management.compiler=HotSpot Client Compiler, hibernate.transaction.factory_class=org.hibernate.transaction.JDBCTransactionFactory, os.version=2.6.18-1.2200.fc5, user.home=/home/guillaume, user.timezone=Europe/Paris, java.awt.printerjob=sun.print.PSPrinterJob, file.encoding=UTF-8, java.specification.version=1.5, hibernate.connection.driver_class=com.mysql.jdbc.Driver, user.name=guillaume, java.class.path=/home/guillaume/workspace/hibernate3/bin:/home/guillaume/eclipse/hibernate-3.2/hibernate3.jar:/home/guillaume/workspace/hibernate3/lib/antlr-2.7.6.jar:/home/guillaume/workspace/hibernate3/lib/ant-1.6.5.jar:/home/guillaume/workspace/hibernate3/lib/ant-antlr-1.6.5.jar:/home/guillaume/workspace/hibernate3/lib/ant-junit-1.6.5.jar:/home/guillaume/workspace/hibernate3/lib/ant-launcher-1.6.5.jar:/home/guillaume/workspace/hibernate3/lib/ant-swing-1.6.5.jar:/home/guillaume/workspace/hibernate3/lib/asm-attrs.jar:/home/guillaume/workspace/hibernate3/lib/asm.jar:/home/guillaume/workspace/hibernate3/lib/c3p0-0.9.0.jar:/home/guillaume/workspace/hibernate3/lib/cglib-2.1.3.jar:/home/guillaume/workspace/hibernate3/lib/checkstyle-all.jar:/home/guillaume/workspace/hibernate3/lib/cleanimports.jar:/home/guillaume/workspace/hibernate3/lib/commons-collections-2.1.1.jar:/home/guillaume/workspace/hibernate3/lib/commons-logging-1.0.4.jar:/home/guillaume/workspace/hibernate3/lib/concurrent-1.3.2.jar:/home/guillaume/workspace/hibernate3/lib/connector.jar:/home/guillaume/workspace/hibernate3/lib/dom4j-1.6.1.jar:/home/guillaume/workspace/hibernate3/lib/ehcache-1.2.jar:/home/guillaume/workspace/hibernate3/lib/jaas.jar:/home/guillaume/workspace/hibernate3/lib/jacc-1_0-fr.jar:/home/guillaume/workspace/hibernate3/lib/javassist.jar:/home/guillaume/workspace/hibernate3/lib/jaxen-1.1-beta-7.jar:/home/guillaume/workspace/hibernate3/lib/jboss-cache.jar:/home/guillaume/workspace/hibernate3/lib/jboss-common.jar:/home/guillaume/workspace/hibernate3/lib/jboss-jmx.jar:/home/guillaume/workspace/hibernate3/lib/jboss-system.jar:/home/guillaume/workspace/hibernate3/lib/jdbc2_0-stdext.jar:/home/guillaume/workspace/hibernate3/lib/jgroups-2.2.8.jar:/home/guillaume/workspace/hibernate3/lib/jta.jar:/home/guillaume/workspace/hibernate3/lib/junit-3.8.1.jar:/home/guillaume/workspace/hibernate3/lib/log4j-1.2.11.jar:/home/guillaume/workspace/hibernate3/lib/mysql-connector-java-5.0.4-bin.jar:/home/guillaume/workspace/hibernate3/lib/oscache-2.1.jar:/home/guillaume/workspace/hibernate3/lib/proxool-0.8.3.jar:/home/guillaume/workspace/hibernate3/lib/swarmcache-1.0rc2.jar:/home/guillaume/workspace/hibernate3/lib/syndiag2.jar:/home/guillaume/workspace/hibernate3/lib/versioncheck.jar:/home/guillaume/workspace/hibernate3/lib/xerces-2.6.2.jar:/home/guillaume/workspace/hibernate3/lib/xml-apis.jar, hibernate.bytecode.use_reflection_optimizer=false, hibernate.show_sql=true, java.vm.specification.version=1.0, java.home=/usr/lib/java/jre1.5.0_09, sun.arch.data.model=32, hibernate.dialect=org.hibernate.dialect.MySQLDialect, hibernate.connection.url=jdbc:mysql://localhost/dbessai, user.language=fr, java.specification.vendor=Sun Microsystems Inc., java.vm.info=mixed mode, sharing, java.version=1.5.0_09, java.ext.dirs=/usr/lib/java/jre1.5.0_09/lib/ext, sun.boot.class.path=/usr/lib/java/jre1.5.0_09/lib/rt.jar:/usr/lib/java/jre1.5.0_09/lib/i18n.jar:/usr/lib/java/jre1.5.0_09/lib/sunrsasign.jar:/usr/lib/java/jre1.5.0_09/lib/jsse.jar:/usr/lib/java/jre1.5.0_09/lib/jce.jar:/usr/lib/java/jre1.5.0_09/lib/charsets.jar:/usr/lib/java/jre1.5.0_09/classes, java.vendor=Sun Microsystems Inc., file.separator=/, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, dialect=org.hibernate.dialect.MySQLDialect, sun.cpu.isalist=}
00:11:13,004 DEBUG Configuration:1209 - Preparing to build session factory with filters : {}
00:11:13,006 DEBUG Configuration:1044 - processing extends queue
00:11:13,009 DEBUG Configuration:1048 - processing collection mappings
00:11:13,011 DEBUG Configuration:1059 - processing native query and ResultSetMapping mappings
00:11:13,012 DEBUG Configuration:1067 - processing association property references
00:11:13,014 DEBUG Configuration:1089 - processing foreign key constraints
00:11:13,721  INFO DriverManagerConnectionProvider:41 - Using Hibernate built-in connection pool (not for production use!)
00:11:13,729  INFO DriverManagerConnectionProvider:42 - Hibernate connection pool size: 20
00:11:13,730  INFO DriverManagerConnectionProvider:45 - autocommit mode: false
00:11:13,797  INFO DriverManagerConnectionProvider:80 - using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost/dbessai
00:11:13,801  INFO DriverManagerConnectionProvider:83 - connection properties: {user=guillaume, password=pelops}
00:11:13,809 DEBUG DriverManagerConnectionProvider:93 - total checked-out connections: 0
00:11:13,811 DEBUG DriverManagerConnectionProvider:109 - opening new JDBC connection
00:11:15,377 DEBUG DriverManagerConnectionProvider:115 - created connection to: jdbc:mysql://localhost/dbessai, Isolation Level: 4
00:11:15,385  INFO SettingsFactory:81 - RDBMS: MySQL, version: 5.0.22
00:11:15,388  INFO SettingsFactory:82 - JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.0.4 ( $Date: 2006-10-19 17:47:48 +0200 (Thu, 19 Oct 2006) $, $Revision: 5908 $ )
00:11:15,389 DEBUG DriverManagerConnectionProvider:129 - returning connection to pool, pool size: 1
00:11:15,611  INFO Dialect:141 - Using dialect: org.hibernate.dialect.MySQLDialect
00:11:15,643  INFO TransactionFactoryFactory:34 - Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory
00:11:15,651  INFO TransactionManagerLookupFactory:33 - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
00:11:15,657  INFO SettingsFactory:134 - Automatic flush during beforeCompletion(): disabled
00:11:15,659  INFO SettingsFactory:138 - Automatic session close at end of transaction: disabled
00:11:15,661  INFO SettingsFactory:145 - JDBC batch size: 15
00:11:15,676  INFO SettingsFactory:148 - JDBC batch updates for versioned data: disabled
00:11:15,689  INFO SettingsFactory:153 - Scrollable result sets: enabled
00:11:15,694 DEBUG SettingsFactory:157 - Wrap result sets: disabled
00:11:15,700  INFO SettingsFactory:161 - JDBC3 getGeneratedKeys(): enabled
00:11:15,710  INFO SettingsFactory:169 - Connection release mode: auto
00:11:15,777  INFO SettingsFactory:193 - Maximum outer join fetch depth: 2
00:11:15,780  INFO SettingsFactory:196 - Default batch fetch size: 1
00:11:15,831  INFO SettingsFactory:200 - Generate SQL with comments: disabled
00:11:15,862  INFO SettingsFactory:204 - Order SQL updates by primary key: disabled
00:11:15,865  INFO SettingsFactory:369 - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
00:11:15,890  INFO ASTQueryTranslatorFactory:24 - Using ASTQueryTranslatorFactory
00:11:15,894  INFO SettingsFactory:212 - Query language substitutions: {}
00:11:15,898  INFO SettingsFactory:217 - JPA-QL strict compliance: disabled
00:11:15,904  INFO SettingsFactory:222 - Second-level cache: enabled
00:11:15,906  INFO SettingsFactory:226 - Query cache: disabled
00:11:15,907  INFO SettingsFactory:356 - Cache provider: org.hibernate.cache.NoCacheProvider
00:11:15,909  INFO SettingsFactory:241 - Optimize cache for minimal puts: disabled
00:11:15,910  INFO SettingsFactory:250 - Structured second-level cache entries: disabled
00:11:15,921 DEBUG SQLExceptionConverterFactory:52 - Using dialect defined converter
00:11:15,938  INFO SettingsFactory:270 - Echoing all SQL to stdout
00:11:15,941  INFO SettingsFactory:277 - Statistics: disabled
00:11:15,954  INFO SettingsFactory:281 - Deleted entity synthetic identifier rollback: disabled
00:11:15,957  INFO SettingsFactory:296 - Default entity-mode: pojo
00:11:16,301  INFO SessionFactoryImpl:161 - building session factory
00:11:16,397 DEBUG SessionFactoryImpl:173 - Session factory constructed with filter configurations : {}
00:11:16,405 DEBUG SessionFactoryImpl:177 - instantiating session factory with properties: {java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, hibernate.connection.password=pelops, sun.boot.library.path=/usr/lib/java/jre1.5.0_09/lib/i386, java.vm.version=1.5.0_09-b03, hibernate.connection.username=guillaume, java.vm.vendor=Sun Microsystems Inc., java.vendor.url=http://java.sun.com/, path.separator=:, java.vm.name=Java HotSpot(TM) Client VM, file.encoding.pkg=sun.io, user.country=FR, sun.os.patch.level=unknown, java.vm.specification.name=Java Virtual Machine Specification, user.dir=/home/guillaume/workspace/hibernate3, java.runtime.version=1.5.0_09-b03, java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment, hibernate.current_session_context_class=thread, java.endorsed.dirs=/usr/lib/java/jre1.5.0_09/lib/endorsed, os.arch=i386, java.io.tmpdir=/tmp, line.separator=
, java.vm.specification.vendor=Sun Microsystems Inc., os.name=Linux, sun.jnu.encoding=UTF-8, java.library.path=/usr/lib/java/jre1.5.0_09/lib/i386/client:/usr/lib/java/jre1.5.0_09/lib/i386:/usr/lib/java/jre1.5.0_09/../lib/i386:/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre/lib/i386:/usr/lib/mozilla-1.7.13, java.specification.name=Java Platform API Specification, java.class.version=49.0, sun.management.compiler=HotSpot Client Compiler, hibernate.transaction.factory_class=org.hibernate.transaction.JDBCTransactionFactory, os.version=2.6.18-1.2200.fc5, user.home=/home/guillaume, user.timezone=Europe/Paris, java.awt.printerjob=sun.print.PSPrinterJob, file.encoding=UTF-8, java.specification.version=1.5, hibernate.connection.driver_class=com.mysql.jdbc.Driver, java.class.path=/home/guillaume/workspace/hibernate3/bin:/home/guillaume/eclipse/hibernate-3.2/hibernate3.jar:/home/guillaume/workspace/hibernate3/lib/antlr-2.7.6.jar:/home/guillaume/workspace/hibernate3/lib/ant-1.6.5.jar:/home/guillaume/workspace/hibernate3/lib/ant-antlr-1.6.5.jar:/home/guillaume/workspace/hibernate3/lib/ant-junit-1.6.5.jar:/home/guillaume/workspace/hibernate3/lib/ant-launcher-1.6.5.jar:/home/guillaume/workspace/hibernate3/lib/ant-swing-1.6.5.jar:/home/guillaume/workspace/hibernate3/lib/asm-attrs.jar:/home/guillaume/workspace/hibernate3/lib/asm.jar:/home/guillaume/workspace/hibernate3/lib/c3p0-0.9.0.jar:/home/guillaume/workspace/hibernate3/lib/cglib-2.1.3.jar:/home/guillaume/workspace/hibernate3/lib/checkstyle-all.jar:/home/guillaume/workspace/hibernate3/lib/cleanimports.jar:/home/guillaume/workspace/hibernate3/lib/commons-collections-2.1.1.jar:/home/guillaume/workspace/hibernate3/lib/commons-logging-1.0.4.jar:/home/guillaume/workspace/hibernate3/lib/concurrent-1.3.2.jar:/home/guillaume/workspace/hibernate3/lib/connector.jar:/home/guillaume/workspace/hibernate3/lib/dom4j-1.6.1.jar:/home/guillaume/workspace/hibernate3/lib/ehcache-1.2.jar:/home/guillaume/workspace/hibernate3/lib/jaas.jar:/home/guillaume/workspace/hibernate3/lib/jacc-1_0-fr.jar:/home/guillaume/workspace/hibernate3/lib/javassist.jar:/home/guillaume/workspace/hibernate3/lib/jaxen-1.1-beta-7.jar:/home/guillaume/workspace/hibernate3/lib/jboss-cache.jar:/home/guillaume/workspace/hibernate3/lib/jboss-common.jar:/home/guillaume/workspace/hibernate3/lib/jboss-jmx.jar:/home/guillaume/workspace/hibernate3/lib/jboss-system.jar:/home/guillaume/workspace/hibernate3/lib/jdbc2_0-stdext.jar:/home/guillaume/workspace/hibernate3/lib/jgroups-2.2.8.jar:/home/guillaume/workspace/hibernate3/lib/jta.jar:/home/guillaume/workspace/hibernate3/lib/junit-3.8.1.jar:/home/guillaume/workspace/hibernate3/lib/log4j-1.2.11.jar:/home/guillaume/workspace/hibernate3/lib/mysql-connector-java-5.0.4-bin.jar:/home/guillaume/workspace/hibernate3/lib/oscache-2.1.jar:/home/guillaume/workspace/hibernate3/lib/proxool-0.8.3.jar:/home/guillaume/workspace/hibernate3/lib/swarmcache-1.0rc2.jar:/home/guillaume/workspace/hibernate3/lib/syndiag2.jar:/home/guillaume/workspace/hibernate3/lib/versioncheck.jar:/home/guillaume/workspace/hibernate3/lib/xerces-2.6.2.jar:/home/guillaume/workspace/hibernate3/lib/xml-apis.jar, user.name=guillaume, hibernate.bytecode.use_reflection_optimizer=false, hibernate.show_sql=true, java.vm.specification.version=1.0, sun.arch.data.model=32, java.home=/usr/lib/java/jre1.5.0_09, hibernate.connection.url=jdbc:mysql://localhost/dbessai, hibernate.dialect=org.hibernate.dialect.MySQLDialect, java.specification.vendor=Sun Microsystems Inc., user.language=fr, java.vm.info=mixed mode, sharing, java.version=1.5.0_09, java.ext.dirs=/usr/lib/java/jre1.5.0_09/lib/ext, sun.boot.class.path=/usr/lib/java/jre1.5.0_09/lib/rt.jar:/usr/lib/java/jre1.5.0_09/lib/i18n.jar:/usr/lib/java/jre1.5.0_09/lib/sunrsasign.jar:/usr/lib/java/jre1.5.0_09/lib/jsse.jar:/usr/lib/java/jre1.5.0_09/lib/jce.jar:/usr/lib/java/jre1.5.0_09/lib/charsets.jar:/usr/lib/java/jre1.5.0_09/classes, java.vendor=Sun Microsystems Inc., file.separator=/, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, sun.cpu.endian=little, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.isalist=, dialect=org.hibernate.dialect.MySQLDialect}
Main error :org.hibernate.MappingException: could not instantiate id generator
org.hibernate.MappingException: could not instantiate id generator
	at org.hibernate.id.IdentifierGeneratorFactory.create(IdentifierGeneratorFactory.java:98)
	at org.hibernate.mapping.SimpleValue.createIdentifierGenerator(SimpleValue.java:152)
	at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:192)
	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1218)
	at fr.exemple.EssaiHibernate.<init>(EssaiHibernate.java:29)
	at fr.exemple.EssaiHibernate.main(EssaiHibernate.java:36)
Caused by: org.hibernate.MappingException: Dialect does not support sequences
	at org.hibernate.dialect.Dialect.getSequenceNextValString(Dialect.java:570)
	at org.hibernate.id.SequenceGenerator.configure(SequenceGenerator.java:65)
	at org.hibernate.id.IdentifierGeneratorFactory.create(IdentifierGeneratorFactory.java:94)
	... 5 more
Si quelqu'un a une idée...
Merci