When trying to use the @Index annotation from javax.persistence Eclipse gives me this error.
I use it just before the java.util.Date field inside the class annotated with @Entity .
I used to use org.hibernate.annotations.Index in the same place, and everything was fine.
The problem started after I updated hibernate-core from 4.1.9.Final to 4.3.0.Beta3 and hibernate-commons-annotations from 4.0.1 to 4.0.2. He says that @Index deprecated and recommends javax.persistence alone.
All documents and examples I found put @Index in front of class members. What am I missing?
java jpa hibernate-annotations
Vituel Jul 12 '13 at 17:12 2013-07-12 17:12
source share