[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-527) Hibernate Search Not giving any errror when @DocumentId not mentioned, but hangs at configuration.buildSessionFactory()

Sanne Grinovero (JIRA) noreply at atlassian.com
Fri May 7 13:11:49 EDT 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-527?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=36971#action_36971 ] 

Sanne Grinovero commented on HSEARCH-527:
-----------------------------------------

are you able to reproduce it with a Test? did you try version 3.2.0 ?

> Hibernate Search Not giving any errror when @DocumentId not mentioned, but hangs at configuration.buildSessionFactory()
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: HSEARCH-527
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-527
>             Project: Hibernate Search
>          Issue Type: Bug
>          Components: engine
>    Affects Versions: 3.1.0.GA
>         Environment: Hibernate core : 3.3.1 GA, Hibernate Annotations : 3.4.0.GA, Hibernate commons Annotations : 3.1.0 GA, Lucene core 2.4.1
> Mysql Community 5.0.41
>            Reporter: Kiran Narasareddy
>            Priority: Minor
>
> Consider a case in which primary key is associated with only Base class, with no primary key in any other subclasses marked for Lucene's document id.
> Now, if this attribute is not annotated with @DocumentId, hibernate engine shows no errors, but it hangs up at configuration.buildSessionFactory(); and doesn't move forward.
> The moment the annotation is added, the SessionFactory gets built and the application works.
> Example Model :
> Aobject.java :   
>     long id;   (this is the intended field to be taken as documentID for lucene )
> MyObject extends Aobject  
>                    (This class is to be indexed.It has no id field of its own, the same id from AObject acts as PK for MyObject Also)

-- 
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