Hello,
My code is :
Session session = sessionFactory.openSession();
Transaction tx = null;
try
{
tx = session.beginTransaction();
Query q = session.createSQLQuery("select utilisateur.Login as {utilisateur.LOGIN} from t_utilisateur {utilisateur}", "utilisateur", fr.edf.arche.communs.model.TUtilisateur.class);
List utilisateurs = q.list();
tx.commit();
}
catch (HibernateException he)
{
if (tx != null) tx.rollback();
}
I use the plug in Hibernate 2.1.6 with Eclipse 2.1.3
My database is Oracle 8.1
I have a HibernateException that says : my column is invalid.
But my table is "t_utilisateur" and my column is "Login".
So, i don't underestand.
Is there anyone can help me?
Tanks.
--
A user from french.
|