hi All,
Am inserting objects in bulk using HQL as described in "DML style operation " here:
http://docs.jboss.org/hibernate/core/3. ... tch-direct .
The inserted object is hibernate search enabled and has annotations for being indexed. Insertion is successful, yet
Lucene search index are not updated. My questions are:
1. do DML style operations
skip indexing ?
2. are these newly inserted objects
loaded in memory ever? or Hibernate only executes the SQL?
HQL is:
Insert into EntityA(someDate, status, entityB, someOtherId, yetAnotherId)
select current_date(), '1', entityB , 24, 1 from EntityB entityB where entityB.id in (46271)
It will be great if someone could confirm DML style operations' behavior.
regards,
Rajeev