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

Kiran Narasareddy (JIRA) noreply at atlassian.com
Fri May 7 10:15:49 EDT 2010


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