-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: HibernateException with a invalid column database
PostPosted: Wed Jan 19, 2005 1:27 pm 
Newbie

Joined: Wed Jan 19, 2005 7:15 am
Posts: 2
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.