-->
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: HQL and PersistentEnum problem
PostPosted: Fri Nov 28, 2003 11:48 am 
Newbie

Joined: Thu Oct 23, 2003 10:55 am
Posts: 11
Hello,

I am trying to sort elements in an HQL query from a PersistentEnum element:
Code:
select ps from PanelSupplier as ps where ps.panel=? order by ps.currentState.State asc

It seems that it does not work. The exception is:
Code:
net.sf.hibernate.QueryException: could not resolve property type:

Does anybody have an explanation?

MG


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 28, 2003 8:00 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
wouldn't it be order by "ps.currentState"?

What is "State"? Why is it capitalized?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 01, 2003 12:43 pm 
Newbie

Joined: Thu Oct 23, 2003 10:55 am
Posts: 11
Thanks, It seems the capitalized "State" was the error.
Sorry for the newbies error.

Thanks again

[MG]


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.