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.  [ 2 posts ] 
Author Message
 Post subject: How to implement join without association in criteria.
PostPosted: Wed Feb 04, 2009 1:44 am 
Newbie

Joined: Wed Dec 03, 2008 8:05 am
Posts: 11
Hi All,

I have an issue with Criteria.


I have two tables without association. My query is as follows,

SELECT * FROM TRACE_USER TU, AUDIT_EVENT_LOG AL WHERE TU_USER_ID = AL.ACTIVITY_USER

ORDER BY AL.CHECKOUT,AL.ACTIVITY_USER ASC.


Please help how to implement in Criteria.


Thx in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 04, 2009 3:37 am 
Expert
Expert

Joined: Thu Jan 08, 2009 6:16 am
Posts: 661
Location: Germany
Hi,
As far as I know, it is not possible to relate these to tables with criteria if you don't have an association mapped between them.

_________________
-----------------
Need advanced help? http://www.viada.eu


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

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.