-->
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.  [ 2 posts ] 
Author Message
 Post subject: Problems with a Query
PostPosted: Mon Feb 07, 2005 7:08 am 
Newbie

Joined: Wed Feb 02, 2005 1:49 pm
Posts: 4
Hello people, I'm prblem with my query. I have execute the query not sucess:
"FROM com.se.test.bo.Employer as obj where obj.cdUser = 10 and obj.idUser = 20"

Note, propoerties cdUser and idUser are part of the class father User which the Employer class is derived.

The stack error is:

The number name 'com.se.test.bo.' contains more than the maximum number of prefixes. The maximum is 3.
net.sf.hibernate.exception.GenericJDBCException: Could not execute query
at net.sf.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:81)
at net.sf.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:70)
at net.sf.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:30)
at net.sf.hibernate.impl.SessionImpl.convert(SessionImpl.java:4110)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1556)
at net.sf.hibernate.impl.QueryImpl.list(QueryImpl.java:39)

Any person help me ??

Thank you....

Jeferson...


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 08, 2005 2:21 am 
Newbie

Joined: Mon Aug 09, 2004 7:29 am
Posts: 10
Location: India
Quote:
"FROM com.se.test.bo.Employer as obj where obj.cdUser = 10 and obj.idUser = 20"


try changing it to
"FROM Employer as obj where obj.cdUser = 10 and obj.idUser = 20"

i.e., specify just the class name and not the fully qualified name


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