executeBatchSuffix

Talks about: <a class="post-tag post-tag-frontmatter" href="/tags/frontmatter">frontmatter</a>, and <a class="post-tag post-tag-sql" href="/tags/sql">sql</a>

The method suffix to use for generated methods that execute in a batch.

Configuration Options

Option: ‘Batch’

The default value for executeBatchSuffix is ‘Batch’. It adds the word ‘Batch’ after each batch method.

package com.example.persistence;

public class SomeRepository {

    public void writeSomeBatch() {
        // ... some code
    }

    // ... rest of generated code

}

Option: ‘Other’

In case you want to suffix batch methods with something else, set the executeBatchSuffix option.

package com.example.persistence;

public class SomeRepository {

    public void writeSomeOther() {
        // ... some code
    }

    // ... rest of generated code

}

Front Matter

In order to configure this option, place the following code in the front matter of your SQL statement:

-- executeBatchSuffix: configValue
SELECT  something
FROM    your_database_schema
WHERE   some_column = :some_value