| When querying already persisted entities (even the query is selecting on a primary key only) without hibernate-search-orm dependency the java.lang.IllegalArgumentException: HQL100001: The type <Entity Type> is not an indexed entity is thrown. Maybe I am wrong, but my understanding is that indexing is required only if the query includes non key elements. If hibernate-search-orm dependency is added to enable indexing, the javax.persistence.PersistenceException: org.hibernate.HibernateException: HHH000142: Javassist Enhancement failed: <Entity Type> is thrown. dadrus/jpa-unit CleanupTest can be used to reproduce the issues. the test method implementing the aforementioned query is test2 implemented in the base class of the referenced test. hibernate-search-orm dependency can be enabled/disabled in the dadrus/jpa-unit test-model subproject. Am I doing something wrong or have indeed encountered multiple bugs here? |