Joined: Mon Jun 11, 2007 4:42 am Posts: 7 Location: Italy
|
I have to make native sql query without knowing in advace which query it will be, for example something like this:
sqlQuery=... // a query string get from a input file from a socket
List results = systemSession.createSQLQuery(sqlQuery).list();
is it possible in Hibernate? All the example i found need a scalar to be added or a entity class to be added, but I can't do that as i don't know how the sql statement will be (possibly i don't want to make a sql parser to get which is the pieces in the sql statement).
Thanks
|
|