-->
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.  [ 4 posts ] 
Author Message
 Post subject: HT_<<TABLE_NAME_HERE>>
PostPosted: Wed May 26, 2010 3:11 am 
Beginner
Beginner

Joined: Sat Sep 12, 2009 10:20 am
Posts: 44
I am running an HSQL update command and it is generating this SQL:


Code:
update TableA set x=13216 where (id) IN (select id from HT_TableA);


What is HT_TableA? I can't run that query straight from mysql.

If I change from HSQL to straight SQL, it crates the query as I would expect

Code:
update TableA set x=13216 where id = 123;


Here's my my code:

Code:
final String hql = "update TableA a set a.x.id = :to where a.id = :from";
        final Query query = query(hql);
        query.setParameter("from", from.getId());
        query.setParameter("to", to.getId());


Top
 Profile  
 
 Post subject: Re: HT_<<TABLE_NAME_HERE>>
PostPosted: Thu Jun 03, 2010 2:51 am 
Beginner
Beginner

Joined: Sat Sep 12, 2009 10:20 am
Posts: 44
Does anybody know what this is?


Top
 Profile  
 
 Post subject: Re: HT_<<TABLE_NAME_HERE>>
PostPosted: Thu Jun 03, 2010 2:58 am 
Newbie

Joined: Mon Nov 23, 2009 1:17 pm
Posts: 5
From a little Googling, it appears Hibernate creates temporary tables with the HT_ prefix. Hibernate apparently needs a temporary table to run your HQL query.


Top
 Profile  
 
 Post subject: Re: HT_<<TABLE_NAME_HERE>>
PostPosted: Tue Dec 14, 2010 6:40 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 11, 2009 2:26 am
Posts: 29
http://in.relation.to/Bloggers/MultitableBulkOperations


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.