Search in sources :

Example 1 with StatementBuilder

use of org.hisp.dhis.jdbc.StatementBuilder in project dhis2-core by dhis2.

the class StatementBuilderTest method testStatementBuilder.

@Test
public void testStatementBuilder() {
    StatementBuilder builder = new PostgreSQLStatementBuilder();
    String autoIncrement = builder.getAutoIncrementValue();
    assertEquals("nextval('hibernate_sequence')", autoIncrement);
}
Also used : StatementBuilder(org.hisp.dhis.jdbc.StatementBuilder) Test(org.junit.Test)

Aggregations

StatementBuilder (org.hisp.dhis.jdbc.StatementBuilder)1 Test (org.junit.Test)1