Joined: Thu Dec 13, 2007 8:18 pm Posts: 4
|
I have a class that extends another class. The base class has the @Id, but I want to search the derived classes (they have the Fields).
When I try to simply start up Spring I get:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [config.xml]: Invocation of init method failed; nested exception is org.hibernate.search.SearchException: No document id in: com.ontometrics.portal.contributions.Post
Caused by: org.hibernate.search.SearchException: No document id in: com.ontometrics.portal.contributions.Post
at org.hibernate.search.engine.DocumentBuilder.<init>(DocumentBuilder.java:98)
at org.hibernate.search.impl.SearchFactoryImpl.initDocumentBuilders(SearchFactoryImpl.java:262)
at org.hibernate.search.impl.SearchFactoryImpl.<init>(SearchFactoryImpl.java:94)
at org.hibernate.search.impl.SearchFactoryImpl.getSearchFactory(SearchFactoryImpl.java:172)
at org.hibernate.search.event.FullTextIndexEventListener.initialize(FullTextIndexEventListener.java:44)
at org.hibernate.event.EventListeners.initializeListeners(EventListeners.java:356)
at org.hibernate.cfg.Configuration.getInitializedEventListeners(Configuration.java:1304)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
|
|