This week's book giveaway is in the
We're giving away four copies of a choice of
"Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac"
and have Joe Kissell on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Take Control of Upgrading to Yosemite
Take Control of Automating Your Mac
this week in the
Object Relational Mapping
Convert to hibernate simple SQL statement
Joined: Apr 06, 2011
Apr 08, 2011 09:31:31
Could you please help to convert tis sql statement to hibernate:
select * from table1 t1, table2 t2
where t1.id = t2.id;
thanks in advance
sorry for mistakes its my first topic here
Joined: Sep 01, 2010
Apr 14, 2011 23:44:04
HQL: from Table1 t1, Table2 t2 where t1.id=t2.id
This can get much simpler if you could share the mapping files you used for these 2 tables..
remember, in HQL you cannot use the table name, you can only use the POJO name (which is mapped)
subject: Convert to hibernate simple SQL statement
sql syntax question
From SQL to HQL
"synchronizing" a static member
Deadlocks in Threads?
SQL: howto retrieve only the first row?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014