]
Kiran Narasareddy commented on HSEARCH-527:
-------------------------------------------
Hey Sanne, sorry for my ignorance, I was caught up with my Product delivery. I will
upload an example entity for ur reference as soon as possible(max till end of the day).
Sorry once again.
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: