executeBatchPrefix

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 prefix to use for generated methods that execute in a batch.

Configuration Options

Option: ''

The default value for executeBatchPrefix is the empty string. It does not add any prefix in front of batch methods.

package com.example.persistence;

public class SomeRepository {

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

    // ... rest of generated code

}

Option: ‘myPrefix’

In case you want to prefix batch methods with something, set the executeBatchPrefix option.

package com.example.persistence;

public class SomeRepository {

    public void myPrefixWriteSomeBatch() {
        // ... 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:

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