-->
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: Exception in query
PostPosted: Fri Jun 24, 2005 6:15 am 
Newbie

Joined: Fri Jun 24, 2005 6:04 am
Posts: 14
Hi,

Im very noob to hibernate and i cant solve this exception.

I have following code:

Long customerId = new Long(customerRecordId);

Query query = session.createQuery(

"from tmpimage tmp where tmp.customerrecordid = :customerrecordid")
.setParameter("customerrecordid", customerId);

return query.list();

And all i got is this exception:

Hibernate Exception in expected: tmp [from tmpimage tmp where tmp.customerrecordid in :customerrecordid]


Top
 Profile  
 
 Post subject: My fault :-(
PostPosted: Fri Jun 24, 2005 6:44 am 
Newbie

Joined: Fri Jun 24, 2005 6:04 am
Posts: 14
I found out what was wrong :-)

There is *big* difference between tmpimage and Tmpimage


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.