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: Arbitrary joins and foreign keys
PostPosted: Wed Aug 16, 2006 10:44 am 
Beginner
Beginner

Joined: Wed Apr 26, 2006 4:12 am
Posts: 29
I wish to do an HQL query on 2 tables where the columns are not related by a primary or foreign key. One of the tables holds denormalised data, and is not constrained by anything on the database. I merely want to join my first table onto this, but I'm not sure how to define the field mappings in this scenario.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 16, 2006 6:34 pm 
Senior
Senior

Joined: Wed Jun 15, 2005 4:17 am
Posts: 156
it is very hard to work with denormalized tables and arbitrary join criteria so I would sugest you not to attempt to map that table but to use a plain SQL query instead.

cheers,
radu


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.