-->
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: Hibernate not supporting DATE_ADD function using mysql
PostPosted: Tue Jul 01, 2008 2:24 am 
Newbie

Joined: Tue Jul 01, 2008 2:15 am
Posts: 1
Location: Hyderabad
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:3.x

Mapping documents:

DATE_FORMAT(curdate(),'%Y-%m-%d') > date_add('2008-07-01', INTERVAL 6 MONTH)

11:46:44,734 ERROR [PARSER:33] <AST>:1:359: unexpected AST node: :

MYSQL v5.23

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:




_________________
B.chandrashekhar,
Software Engineer,
JIVA InfoTech (INDIA).


Top
 Profile  
 
 Post subject: Try using hibernate dielect
PostPosted: Wed Jul 02, 2008 10:54 pm 
Newbie

Joined: Wed Jul 02, 2008 10:39 pm
Posts: 6
Location: Hyderabad
Hi Chandra,
Try using hibernate dielect Mapping

check this url for example

http://technosatish.blogspot.com/2008/07/hibernate-dielect-example.html

_________________
Regards,
Racha Satish Kumar,
Visit Me Here!


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.