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: