Out of Date
Details
Assignee
UnassignedUnassignedReporter
Kiran NarasareddyKiran NarasareddyComponents
Fix versions
Affects versions
Priority
Minor
Details
Details
Assignee
Unassigned
UnassignedReporter
Kiran Narasareddy
Kiran NarasareddyComponents
Fix versions
Affects versions
Priority
Created May 7, 2010 at 4:14 PM
Updated September 26, 2023 at 9:37 AM
Resolved September 26, 2023 at 9:37 AM
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)