[hibernate-issues] [Hibernate-JIRA] Created: (HSEARCH-550) Using Programamtic API, the document ID is not inherited

Chaffotte (JIRA) noreply at atlassian.com
Mon Jun 28 10:00:09 EDT 2010


Using Programamtic API, the document ID is not inherited
--------------------------------------------------------

                 Key: HSEARCH-550
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-550
             Project: Hibernate Search
          Issue Type: Bug
          Components: engine
    Affects Versions: 3.2.0.Final
         Environment: Hibernate 3.5.1, hsqldb 1.8.0.7
            Reporter: Chaffotte
            Priority: Minor
         Attachments: search.zip

If the document id is not defined in the child class (which is persisted) but in the parent class, the following exception occurs:

 org.hibernate.HibernateException: could not init listeners
	at org.hibernate.event.EventListeners.initializeListeners(EventListeners.java:205)
	...
Caused by: org.hibernate.search.SearchException: No document id in: org.mycompany.hibernate.search.MySubClass
        ...

I attached a simple example. It is a maven project which the test fails until the document id in the MySubClass class is not uncommented.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list