-->
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.  [ 1 post ] 
Author Message
 Post subject: Is that possible execute an "HQL script" with mult
PostPosted: Tue Apr 24, 2007 9:40 am 
Newbie

Joined: Tue Apr 24, 2007 9:28 am
Posts: 1
Location: Manaus-Amazon/Brazil
Hi folks,

I'm needing to perform an HQL that looks like this one:
update Tab1 set prop1=x, prop2=y;
update Tab2 set prop1=x, prop2=y;
...
update TabN set prop1=x, prop2=y

All classes Tab1, Tab2,...,TabN have the same propertie names, with the same types. These properties will have the same values set (x and y).
I'd like to know if it is possible to execute this HQL in the same script.
I've tryed to put a ";" in order to separate them as we do with SQL but unsucessful.
I just wanna know how to perform a HQL like that using only one String to do so.
Thanks of any ideas you may want to share and God blesses you all.

_________________
Trinity:" ...It's the question that drives us, Neo. It's the question that brought you here. You know the question just as I did. "


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

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.