Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Software Craftsman
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-2015