Raible's Wiki

Raible Designs
Wiki Home
News
Recent Changes

AppFuse

Homepage
  - Korean
  - Chinese
  - Italian
  - Japanese

QuickStart Guide
  - Chinese
  - French
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish
  - Japanese

User Guide
  - Korean
  - Chinese

Tutorials
  - Chinese
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish

FAQ
  - Korean

Latest Downloads

Other Applications

Struts Resume
Security Example
Struts Menu

Set your name in
UserPreferences


Referenced by
AppFuseOnPostgreSQL
AppFuseSupport
Articles
Articles_cn
Articles_de
Articles_pt
Articles_zh
CreateDAO
CreateDAO_de
CreateDAO_es
...and 4 more




JSPWiki v2.2.33

[RSS]


Hide Menu

AppFuseOnDB2


Difference between version 18 and version 17:

At line 141 added 1 line.
At line 156 added 1 line.
At line 238 added 14 lines.
__Turn off Hibernate Batch Processing for PostgreSQL__\\ [NPA|NathanAnderson]
When an exception is thrown while performing batch processing in Hibernate on PostgreSQL the cause of the exception is never displayed in the stack trace. By turning off the batch processing exceptions get reported immediately and completely. This can be done by adding an entry into {{applicationContext-hibernate.xml}}. Within the element {{sessionFactory}}, locate the property {{hibernateProperties}} and make it look like this:
{{{
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">@HIBERNATE-DIALECT@</prop>
<!-- turn off batch updated for PostgreSQL to get nicer exception messages -->
<prop key="hibernate.jdbc.batch_size">0</prop>
</props>
</property>
}}}
This will have an effect on the performance of the database, so consider the tradeoff of having better error messages.

Back to AppFuseOnDB2, or to the Page History.