Hi guys :)
I'd like to query directly my DB because my business objects are not aware of all their fields...
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();
}