Вопрос

I've recentlly added Hibernate Search to an existing project with existing entity classes and marked a few entities and fields with Indexed/Field.

However I get following exception at bootstrap time:

org.hibernate.search.SearchException: HSEARCH000135: Unable to guess FieldBridge for <some entity class which is not marked with @Indexed>

The class which is mentioned changes from time to time, but it is not a class which is marked with @Indexed nor it is related with an entity which is indexed.

Why does it even look at these classes?

I'm using Hibernate 4.2.8 with JPA2 and Hibernate Search 4.4.0.

Это было полезно?

Решение

If the entity in question has a composite ID, it is probably caused by this bug.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top