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

Damien Raude-Morvan (JIRA) noreply at atlassian.com
Thu Mar 1 10:30:50 EST 2012


    [ https://hibernate.onjira.com/browse/HSEARCH-550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45771#comment-45771 ] 

Damien Raude-Morvan commented on HSEARCH-550:
---------------------------------------------

Hi,

I can confirm this issue is still present with
- Hibernate Core 3.5.6-Final
- Hibernate Search 3.2.0.Final

Is there a known workaround (other than duplicating docid into parent class) ?

Regards,

> Using Programamtic API, the document ID is not inherited
> --------------------------------------------------------
>
>                 Key: HSEARCH-550
>                 URL: https://hibernate.onjira.com/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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list