-->
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: filter param error colon interpreted
PostPosted: Wed Jan 20, 2010 9:00 am 
Regular
Regular

Joined: Thu Dec 10, 2009 10:53 am
Posts: 50
When I use a conversion function in a hibernate filter to convert a string parameter to a date, the colon : character in the time description, e.g. 15:05:03 is always replaced with 15:<filter-name>.05:<filter-name>.03

I've tried escaping it with :: but this results in :<filter-name>.:<filter-name>.

Is there some workaround for this ?

I'm using hibernate-core 3.3.0.CR1


Top
 Profile  
 
 Post subject: Re: filter param error colon interpreted
PostPosted: Wed Jan 20, 2010 11:22 am 
Regular
Regular

Joined: Thu Dec 10, 2009 10:53 am
Posts: 50
I worked around this by using the timestamp parameter type directly instead of converting/casting strings using the database. That worked flawlessly and the respective database datatypes for java.util.date were timestamp in oracle and datetime for sql server express...


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.