I am using jboss-4.0.4.GA. Can you please tell me how to set the batch update property when using Oracle9 and Hibernate?
For example I have a Customer entity and similar table in database. Everytime i persist Customer in the databse, it works fine but when i try to add more than four or five Customer in a loop i get a BatchUpdateException.
I am sure it has to do with the BatchUpdateProperty but where can i find this property so that i can set it to true.
i found the solution, just thought someone else might benefit from it as well. In the persistence.xml file add the following:
<properties> <property name="hibernate.jdbc.batch_size" value="20"/> </properties>