queries with "select new" now cacheable
------------------------
can't using in more than 2 tables????
-------------------------
Query query = ss.createQuery("select new SectionalFieldsClassName(
a.x, b.y) from A a, B b");
===================
problem 1:
when it be used in 1 table, i must wirte codes in A.hbm.xml
<import class="SectionalFieldsClassName"/>
so, i must write codes in B.hbm.xml?????
if i do that , the problem is "duplicable import class SectionalFieldsClassName".
problem 2:
because of problem 1, i can only write codes "<import class..."
in one *.hbm.xml.
so it can't pass.................................
==============================
_________________ I am the creatxr of world.
|