Java Mailing List Archive

http://www.gg3721.com/

Home » Hibernate Issues List »

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

Anupam M (JIRA)

2010-09-03

Replies: Find Java Web Hosting

Author LoginPost Reply

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

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

no worries :)

> 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

   
_______________________________________________
hibernate-issues mailing list
hibernate-issues@(protected)
https://lists.jboss.org/mailman/listinfo/hibernate-issues
©2008 gg3721.com - Jax Systems, LLC, U.S.A.