-->
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: Using Hibernate Criteria API for simple left join
PostPosted: Fri Aug 10, 2007 12:04 pm 
Newbie

Joined: Mon Sep 04, 2006 7:16 am
Posts: 2
Hi All,

I am trying a simple left join between 2 tables using Hibernate Criteria API.

I do this by using criteria.createAlias(collectionName, aliasName);// Ignore the details
and then setting an Expression API on the alias.

However one of the issues I am facing is an exception which says : 'hibernate.MappingException:collection was not an association'

There is a link on the hibernate site which goes as below

http://www.hibernate.org/117.html#A2

Please visit this link and could any of you let me knw if Hibernate still doesnt support the Criteria API for joins since I assume many of you must have used it in your applications.

Kindly let me know if you need any inputs from my side.

Many Thanks.


Regards,
Rajesh


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.