-->
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: filter with date time fails
PostPosted: Mon Dec 21, 2009 10:50 am 
Regular
Regular

Joined: Thu Dec 10, 2009 10:53 am
Posts: 50
I'm trying to write a filter that compares a datetime field with another datetime value. Eventually I'd like to use a parameter but for now even comparisons with a constant fail.

Code:
@Filter(name = "datedversion", condition="(VALID_UNTIL is not null) and (VALID_UNTIL >=' 12.12.2009 00:00:00')")


hibernate replaces the : with :datedversion. which results in

Code:
a2bset0_.VALID_UNTIL >= '12.12.2009 00:datedversion.00:datedversion.00')


Then the database complains about not being able to convert to a datetime object. I am using MS SQL Server 2005 with german language settings.

Any ideas?


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.