-->
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: BAD SQL grammer when inserting
PostPosted: Sun May 23, 2004 12:45 pm 
Beginner
Beginner

Joined: Thu Apr 29, 2004 4:03 pm
Posts: 40
Hi,

I have a problem when inserting an object to a datase table: it writes me to the console, about jdbc exception, syntax error and bad sql grammer .
Altought, it saves the object to the database (when I use db vizualizer), but throws this error, so my program cannot continue.

I can't isolate the problem, because these are so general warnings...

I can read the object, but cannot insert it. Is it than possible, that I have a ba mapping file?

I use Spring HibernateDaoSupport. I call getHibernateTemplate().save(Object o). My object implements serializable. My object is an inherited class, so I added the inherited attributes also to the mapping file.
Saving worked on a simple object, with 3 attributes. I use Hib.2.3.1

Sorry, I cannot include xml file nor the source (I cannot access them from home). Altought If you have any ideas, what does those mysterious bad grammer warnings mean, pleas help me.

(Is it problem, that I have a java.util.Date field mapped to date?)


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.