A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
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.
Have you checked out
subject: Hibernate querying two tables using join
join problem in hibernate 3.x
Oracle-jdbc : get a LONG column
JDBCExceptionReport and Hibernate
getGeneratedKeys() causing exception
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015