Bonjour.

La plupart des tutos Hibernate en ligne, et ceux qui ont été publiés travaillent avec Hibernate 3.

La doc en ligne pour la version 4 http://hibernate.org/orm/documentation/ dit qu'un fichier de mapping XML n'est pas obligatoire (JPA2 dit la même chose) :

Object/relational mappings can be defined in three approaches:

  • using Java 5 annotations (via the Java Persistence 2 annotations)
  • using JPA 2 XML deployment descriptors (described in chapter XXX)
  • using the Hibernate legacy XML files approach known as hbm.xml


mais la doc ne dit pas pourquoi c3p0 a disparu d'Hibernate 4
ce que me dit bien le module Hibernate de JBoss 6.4