-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: HQL bulk operation question
PostPosted: Fri Aug 12, 2011 2:05 am 
Newbie

Joined: Thu Mar 10, 2011 12:16 pm
Posts: 7
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


Top
 Profile  
 
 Post subject: Re: HQL bulk operation question
PostPosted: Tue Aug 16, 2011 1:28 am 
Newbie

Joined: Thu Mar 10, 2011 12:16 pm
Posts: 7
It would be great if someone could confirm Hibernate's behavior.


Top
 Profile  
 
 Post subject: Re: HQL bulk operation question
PostPosted: Tue Aug 16, 2011 1:57 am 
Newbie

Joined: Thu Mar 10, 2011 12:16 pm
Posts: 7
posted in hibernate search forum. viewtopic.php?f=9&t=1012243


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.