A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
Object Relational Mapping
Hibernate querying two tables using join
Joined: Jul 26, 2013
Jul 26, 2013 05:52:51
Hey guys I`m new in hibernate and in posting issues here too.
till now and used to code like
select * from apple as a join banana as b on b.color=a.color;
How to do this in hibernate using annotation mappings?
Joined: Jul 02, 2013
Jul 31, 2013 16:16:03
Annotate the basic hibernate class. any simple hibernate example would do.
Then either you can use hql to do your sql stuff.
I believe apple and banana has no real association (mean to say one2many or many2one o)?
So i believe in that case hql is way out.
It is sorta covered in the
JavaRanch Style Guide
subject: Hibernate querying two tables using join
JDBCExceptionReport and Hibernate
join problem in hibernate 3.x
Oracle-jdbc : get a LONG column
getGeneratedKeys() causing exception
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014