Here is my code:
Configuration config = new Configuration().configure();
which gives :
org.hibernate.MappingException: An AnnotationConfiguration instance is required to use <mapping class="com.google.musicstore.domain.Record"/>
fine... so I try to use org.hibernate.cfg.AnnotationConfiguration instead :
Configuration config = new AnnotationConfiguration().configure();
but that class is deprecated. The docs instruct me to use Configuration instead!
As a side note, the AnnotationConfiguration option fails also, resulting in :
Caused by: java.lang.IncompatibleClassChangeError: Implementing class
Here is my pom.xml :
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-search</artifactId>
<version>4.3.0.Final</version>
</dependency>
Help please!!!