Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
3.1
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:
Ingres 2.6
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
I am new to hibernate. I use a legacy database.
I have the following requirement
There are four tables
Table 1
col1,col2,col3,col4,col5 (key)
col6,col7,col8.col9,col10,serkey,delkey
Table 2
serkey,column1
Table 3
delkey,column2
table4
col1,col2
I need the following sql query
select table1.col1,table1.col2,table1.col3,table1.col4,table1.col5,table1.col6,
table2.column1,table3,column2
from tabl1,table2,table3,table4
where table1.serkey = table2.serkey
and table1.delkey = table3.delkey
and table1.col1 = table4.col1
and table1.col2 = table4.col2
Can somebody tell me how to go about it?