Hi,
I've been working on an application for months now and it's always been fine. I am using Tomcat 5 with Hibernate 2. From the logs, everything seems to go well, but my record is not inserted.
Code:
2004-06-21 17:27:13,935 -- DEBUG net.sf.hibernate.SQL -- insert into timeentry (cases, start_time, end_time, earnings, timesh
eet_id, task_id, version_status_id, study_id, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?)
2004-06-21 17:27:13,938 -- DEBUG net.sf.hibernate.SQL -- update timesheet set date=?, exported_date=?, emp_id=?, approver_id=
?, status=? where id=?
2004-06-21 17:27:13,943 -- DEBUG net.sf.hibernate.SQL -- select timesheets0_.id as id0_, timesheets0_.name as name0_ from tim
esheetstatus timesheets0_ where timesheets0_.id=?
These are consecutive entries and as you can see, no errors are thrown. However, when I inspect the database, no entries are there. Has anyone encountered this before? Here is my hibernate.properties:
Code:
hibernate.connection.provider_class=net.sf.hibernate.connection.C3P0ConnectionProvider
hibernate.connection.datasource=java:comp/env/jdbc/pooledDS
hibernate.c3p0.maxPoolSize=15
hibernate.c3p0.minPoolSize=3
hibernate.c3p0.timeout=10000
hibernate.c3p0.maxStatements=200
hibernate.c3p0.validate=false
hibernate.c3p0.numHelperThreads=4
hibernate.cglib.use_reflection_optimizer=false
hibernate.show_sql=false
hibernate.connection.username=dbadmin
hibernate.connection.password=imadba
hibernate.dialect=net.sf.hibernate.dialect.PostgreSQLDialect
hibernate.connection.url=jdbc\:postgresql\://localhost\:5432/dbName
hibernate.connection.driver_class=org.postgresql.Driver