-->
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.  [ 1 post ] 
Author Message
 Post subject: CompositeUserType in HQL
PostPosted: Tue Apr 12, 2005 10:54 am 
Newbie

Joined: Fri Aug 06, 2004 8:10 am
Posts: 9
Location: Brazil
Hibernate version:2.1.6

I'm trying to create a select that return a column with the difference in days between two dates field.

After a couple hours trying to use HQL i give up and start to to solve the problem using CompositeUserType. It's work. I get all the rows with a columns showing the differece in days. My problem now is how to use the CompositeUserType in the HQL Query. I need to group the column and when i do that i get this error:

net.sf.hibernate.QueryException: path expression ends in a composite value


I'ts not possible to use composite user type in HQL?

I appreciate any help.

Thanks


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

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.