Hi guys :)
I'd like to directly query my DBMS because my business objects are not aware of all their fields... (for confidentiality purposes)
But the problem is that the fields of the retrieved object are empty (but the number of "countries" is correct). It seems that the mapping isn't done any longer when working like that...
Do you know where the problem comes from ?
Thanks ;)
Here's my DAO code :
Code:
public Collection<Country> getCountries() {
(...)
String query = "select * from countries";
SQLQuery sqlQuery = session.createSQLQuery(query);
return sqlQuery.list();
}