-->
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.  [ 3 posts ] 
Author Message
 Post subject: DetachedCriteria - Two Diff. Tables with no Joining Possible
PostPosted: Fri Feb 26, 2010 3:05 pm 
Newbie

Joined: Fri Feb 26, 2010 2:54 pm
Posts: 2
create table City (
id long;
cityName char(50);
)

create table Country (
id long;
countryName char(50);
)

I want the SQL:
select * from City city, Country country
where cityName like countryName

How can I do this with DetachedCriteria??
I want the solution ONLY WITH DetachedCriteria....

Plz very urgent :((


Top
 Profile  
 
 Post subject: Re: DetachedCriteria - Two Diff. Tables with no Joining Possible
PostPosted: Fri Feb 26, 2010 3:24 pm 
Newbie

Joined: Fri Feb 26, 2010 2:54 pm
Posts: 2
Hey
Any answer???
Is all here beginners :)))


Top
 Profile  
 
 Post subject: Re: DetachedCriteria - Two Diff. Tables with no Joining Possible
PostPosted: Fri Feb 26, 2010 9:57 pm 
Senior
Senior

Joined: Wed Sep 19, 2007 9:31 pm
Posts: 191
Location: Khuntien (Indonesia)
yup, I am also beginner.

As I know, it just can be done with HQL or SQL native only


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.