-->
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.  [ 5 posts ] 
Author Message
 Post subject: Help with HQL
PostPosted: Thu Nov 06, 2003 9:24 am 
Newbie

Joined: Mon Sep 08, 2003 9:03 pm
Posts: 3
When I execute a
Code:
HQL: FROM user IN class eg.User WHERE user.userName = ?
,Hibernate translates it to
Code:
SQL:select user.user_uid as user_uid, user.version as version, user.name as name, user.userName as userName from cl_users user where (user.userName=? )
. This sql can't be executed rightly in Oracle9i.
When i execute this
Code:
SQL:select usr.user_uid as user_uid, usr.version as version, usr.name as name, usr.userName as userName from cl_users usr
. It can be executed correctly.So I think the world user maybe a keyworld in Oracle SQL. But how can i write the HQL to populate this sql.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 06, 2003 9:26 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
eh?? What ancient version of Hibernate is this? This was changed a long time ago, I thought....


Top
 Profile  
 
 Post subject: Thank you for your reply
PostPosted: Thu Nov 06, 2003 9:39 am 
Newbie

Joined: Mon Sep 08, 2003 9:03 pm
Posts: 3
I use the version Hibernate 2.1 beta 5. When I download the new version
Hibernate 2.1 beta 6, the problem have been solved. Thanks again.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 06, 2003 9:41 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
No way were you using 2.1beta5. 2.0beta5 perhaps.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 06, 2003 10:13 am 
Newbie

Joined: Mon Sep 08, 2003 9:03 pm
Posts: 3
You are right. Thanks. I am a hibernate beginner. I find hibernate is a wonderful framework and it prettily solves the O-R mapping problems. But there is little material to learn it. And i hope your book "hibernate in Action " to be published quickly.


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

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.