Re: PostgreSQL JDBC + Hibernate lose valuable debug info if an exception is thrown

Поиск
Список
Период
Сортировка
От Anders Hermansen
Тема Re: PostgreSQL JDBC + Hibernate lose valuable debug info if an exception is thrown
Дата
Msg-id 20040730113059.GA22368@online.no
обсуждение исходный текст
Ответ на PostgreSQL JDBC + Hibernate lose valuable debug info if an exception is thrown  ("Vianen, Jeroen van" <jeroen.van.vianen@satama.com>)
Список pgsql-jdbc
* Vianen, Jeroen van (jeroen.van.vianen@satama.com) wrote:
> I am wondering whether it is possible to mimic JDK 1.4 root cause exception
> handling in PBatchUpdateException so a decent stack trace can be logged.

As a workaround put:
hibernate.jdbc.batch_size = 0
in your hibernate.properties file.

I believe this will disable Hibernate use of batching, and you will get
a "nicer" stack trace.


Hope this help,
Anders

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: "Vianen, Jeroen van"
Дата:
Сообщение: PostgreSQL JDBC + Hibernate lose valuable debug info if an exception is thrown
Следующее
От: Nick Selva
Дата:
Сообщение: Re: Calling PGSQL Stored function thru JDBC