emmanuel wrote:
For 1 use an orm.xml file
For 2 this is not possible you'll have the compile time overhead. But this is not bad since Hibernate cache (HQL) query plans.
For orm.xml file... where i can find some documentation and/or example?
In particular... is it possible to re-load orm file settings without restart applications? i think the ability to change (tweak) query without restart will be very useful!!!
[OT] is it possible to obtain by hibernate tools???
did You mean that Hibernate cache check if there's a compiled query given by the same string - ejb quey? that's cool!!!
but... if it so... what's the utility of named query???
after the first run.. everey query is cached!!!