views:

414

answers:

1

I'm trying to use the @Searchable annotations from the Compass search engine in my Java program, but I receive a compile-time error: "type mismatch: cannot convert Searchable to Annotation".

I have included all of the jar files that I can think of, and scoured the web for working examples to no avail.

Does anyone have a working example of Compass annotations?

A: 

before i was integrating Hibernate Search into my existing hibernate annotations project it worked fine without much configuration issues. i want to compare Hibernate Search with Compass regarding performance and configuration.

now i am trying to integrate compass with my existing hibernate annotations project. but as soon as i write @Searchable, compiler causes an error same as paul i.e

"Type mismatch: cannot convert from Searchable to Annotation"

same error being caused as i type @SearchableId, @SearchableReference etc

this is really sucking, i have also changed my compiler version from 5 to 6 but it didnt fix the problem. is there anyone who has faced this problem before, can help out ?