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.  [ 3 posts ] 
Author Message
 Post subject: Hibernate java.sql.SQLSyntaxErrorException: ORA-01747
PostPosted: Wed Apr 10, 2013 12:06 pm 
Newbie

Joined: Wed Apr 10, 2013 12:00 pm
Posts: 2
I am getting "java.sql.SQLSyntaxErrorException: ORA-01747: invalid user.table.column, table.column, or column specification"

only when i execute query like :
Query q = session.createQuery("from HORespDetail ho where ho.hosysid='3'");
List l = q.list();

but it works fine if i go like this:
Query q = session.createQuery("select ho.hordsysid from HORespDetail ho where ho.hosysid='3'");
List l = q.list();

can anyone tell me whats the matter here???????


Top
 Profile  
 
 Post subject: Re: Hibernate java.sql.SQLSyntaxErrorException: ORA-01747
PostPosted: Wed Apr 10, 2013 12:18 pm 
Regular
Regular

Joined: Wed Apr 10, 2013 1:02 am
Posts: 50
Both the syntax working fine for me I am using Oracle xe and hibernate 4

_________________
Regards
Akash Miital
http://akash.thegrassroots.co.in/hibernate/


Top
 Profile  
 
 Post subject: Re: Hibernate java.sql.SQLSyntaxErrorException: ORA-01747
PostPosted: Thu Apr 11, 2013 12:22 am 
Newbie

Joined: Wed Apr 10, 2013 12:00 pm
Posts: 2
Thanks for your reply.
and now it works fine.
[RESOLVED] I guess i had "check" as one of my column name and may be its a keyword for SQL. so it was giving an error


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.