Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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
Oracle-jdbc : get a LONG column
join problem in hibernate 3.x
getGeneratedKeys() causing exception
JDBCExceptionReport and Hibernate
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013