Hello
Quote:
List users = lsession.createQuery("from VIEW_GERMAN_INTERNALS_IDP as user where user.inhouse_login = ?")
.setString(0, username)
.list();
Iterator it = users.iterator();
while (it.hasNext()){
user = new User();
user = (User) it.next();
}
return user;
}
My Problem: i try to query table "VIEW_GERMAN_INTERNALS_IDP". If i name the class also "<class name="de.aol.wfm.dbBean.VIEW_GERMAN_INTERNALS_IDP"> everthing is fine.
But i don't want to use such a long name. So i changed the class to
<class name="de.aol.wfm.dbBean.User"> in user-cfg.xml
Have you tried to write:
List users = lsession.createQuery("
from de.aol.wfm.dbBean.User user where user.inhouse_login = ?")
.setString(0, username)
.list();
Regards
Daniel