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. "
|