Dear Friends,
I also have the same problem and part of exception is like below.Actually i am using mysql without problem and now trying to see if it works fine with postgresql too.Thus, experienced friends please tell me, what can be the reason that same code doesnt have problem with mysql but gives error with postgresql.
I am using hibernate-core-3.3.0.jar on windows.
Caused by: java.sql.BatchUpdateException: Batch entry 0 insert into User (avatar, email, enabled, firstName, group_id, lastVisitDate, localization, msn, occupation, password, receiveNews, registerationDate, showMail, showSignature, signature, surname, username, website, id) values (NULL,
forum4j@forum4j.com, 1, forum4j, 2, 2009-09-11 11:27:28.517000 +03:00:00, NULL, NULL, NULL, forum4j, 0, NULL, 0, 0, NULL, NULL, forum4j, NULL, 3) was aborted. Call getNextException to see the cause.
at org.postgresql.jdbc2.AbstractJdbc2Statement$BatchResultHandler.handleError(AbstractJdbc2Statement.java:2537)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1328)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:351)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeBatch(AbstractJdbc2Statement.java:2674)
at org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297)
at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:246)