We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dbef2f commit 814ea97Copy full SHA for 814ea97
documentation/src/test/java/org/hibernate/userguide/batch/BatchTest.java
@@ -206,7 +206,7 @@ private void withBatch() {
206
Person Person = new Person( String.format( "Person %d", i ) );
207
entityManager.persist( Person );
208
209
- if ( i % batchSize == 0 ) {
+ if ( i > 0 && i % batchSize == 0 ) {
210
//flush a batch of inserts and release memory
211
entityManager.flush();
212
entityManager.clear();
0 commit comments