-->
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: Could not generate SQL statement correctly.
PostPosted: Mon Mar 14, 2005 11:31 am 
Newbie

Joined: Mon Mar 14, 2005 11:23 am
Posts: 1
Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
2.1
Mapping documents:

Code between sessionFactory.openSession() and session.close():
Session session = HibernateUtil.currentSession();
Transaction tx= session.beginTransaction();

Wfi_pers wfi_pers = new Wfi_pers();
wfi_pers.setName(name);
wfi_pers.setSurname(surname);
wfi_pers.setDeptid(deptid);

session.save(wfi_pers);
tx.commit();

HibernateUtil.closeSession();

Full stack trace of any exception that occurs:
Name and version of the database you are using:
DB2
The generated SQL (show_sql=true):
[14.03.2005 16:39:55:828 EET] 16f716f7 SystemOut O Hibernate: insert into YKBPRTLS.WFI_PERS (NAME, SURNAME, DEPTID, PERSID) values (?, ?, ?, ?)

Debug level Hibernate log excerpt:


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 14, 2005 11:45 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
What is your problem?


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.