-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Search: @Id Inherited Does NOT Work
PostPosted: Thu Dec 13, 2007 8:22 pm 
Newbie

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)


Top
 Profile  
 
 Post subject: Fixed
PostPosted: Fri Dec 14, 2007 1:39 am 
Newbie

Joined: Thu Dec 13, 2007 8:18 pm
Posts: 4
Read more of the doc and found that it was looking for a different id annotation.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.