From 57023295c1af81b4e4fd3dfd2d5969263179f54c Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Wed, 7 May 2008 06:16:04 +0000 Subject: Support H2 sequences. --- src/main/java/com/amazon/carbonado/repo/jdbc/H2SupportStrategy.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java/com/amazon/carbonado/repo/jdbc') diff --git a/src/main/java/com/amazon/carbonado/repo/jdbc/H2SupportStrategy.java b/src/main/java/com/amazon/carbonado/repo/jdbc/H2SupportStrategy.java index 30a8810..f92fc6a 100644 --- a/src/main/java/com/amazon/carbonado/repo/jdbc/H2SupportStrategy.java +++ b/src/main/java/com/amazon/carbonado/repo/jdbc/H2SupportStrategy.java @@ -25,11 +25,12 @@ package com.amazon.carbonado.repo.jdbc; * @since 1.2 */ class H2SupportStrategy extends JDBCSupportStrategy { + private static final String DEFAULT_SEQUENCE_SELECT_STATEMENT = "SELECT NEXT VALUE FOR %s"; private static final String TRUNCATE_STATEMENT = "TRUNCATE TABLE %s"; protected H2SupportStrategy(JDBCRepository repo) { super(repo); - + setSequenceSelectStatement(DEFAULT_SEQUENCE_SELECT_STATEMENT); setTruncateTableStatement(TRUNCATE_STATEMENT); } -- cgit v1.2.3