-->
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: HSQL Between 2 tables without relation
PostPosted: Wed Aug 04, 2004 2:59 pm 
Newbie

Joined: Mon Aug 02, 2004 12:11 pm
Posts: 10
Location: Mexico D.F.
How do i do a efficient HSQL join between 2 tables without specific relation in a mapping?

I have 2 tables where i want to know the description on a table A with a field on a table B.

Table A (fields)
regnumberA
description
regdate


Table B
regnumberB
stnumber
regdate

i want to know how i obtain de field description of a table A if i want to relate de stnumber to obtain this description if stnumber=regnumberA to obtain these description using the better form to build it with HSQL, help me please.

Regards.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 04, 2004 4:14 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
HQL does not support arbitrary joins between entities. If there is an association there then map it.


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.