A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Object Relational Mapping
Joined: May 27, 2008
May 27, 2008 09:38:00
I am working with one-to-many in hibernate. I have not speccified any join type.
When I use criteria query. Its always doing outer join. I would like that to be inner join. Please let me know how can i get the inner join..
Cameron Wallace McKenzie
author and cow tipper
Joined: Aug 26, 2006
May 28, 2008 03:52:00
What are the objects you're working with? The Criteria API is all about working with objects, and using an object oriented approach to querying your data.
Is there a real one to many relationship between these two classes? If not, why is it not mapped?
Let us know.
It is sorta covered in the
JavaRanch Style Guide
subject: Hibernate Criteria
join problem in hibernate 3.x
new to hibernate, spring.. criteria queries/joins
NHibernate Criteria with Grouping
getting data from 2 tables using 2 DTOs
How to use inner join with hql query
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013