]
Kiran Narasareddy updated HSEARCH-527:
--------------------------------------
Attachment: SampleEntity.zip
It consists of 2 classes AClazz and User. User extends AClazz. Currently the
'hjid' field (which acts the primary id for both AClass n User ) in the AClazz is
annotated to be DocumentId. The current sample entity works fine, but as soon as we remove
the 'DocumentId' annotation from AClazz, the app hangs at
'cfg.buildSessionFactory'
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
Attachments: SampleEntity.zip
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: