-->
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: queries with "select new" can't using in more tha
PostPosted: Mon Apr 12, 2004 6:14 am 
Regular
Regular

Joined: Sat Apr 10, 2004 8:39 pm
Posts: 84
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.


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.