diff --git a/src/java/com/samskivert/jdbc/depot/IdentityValueGenerator.java b/src/java/com/samskivert/jdbc/depot/IdentityValueGenerator.java index b53cbbc..7b85b2c 100644 --- a/src/java/com/samskivert/jdbc/depot/IdentityValueGenerator.java +++ b/src/java/com/samskivert/jdbc/depot/IdentityValueGenerator.java @@ -46,8 +46,7 @@ public class IdentityValueGenerator extends ValueGenerator public void init (Connection conn, DatabaseLiaison liaison) throws SQLException { - liaison.initializeGenerator( - conn, _dm.getTableName(), _fm.getColumnName(), _initialValue, _allocationSize); + // identity value generators are auto-created by the database } @Override // from ValueGenerator diff --git a/src/java/com/samskivert/jdbc/depot/ValueGenerator.java b/src/java/com/samskivert/jdbc/depot/ValueGenerator.java index 7d68304..0c9c240 100644 --- a/src/java/com/samskivert/jdbc/depot/ValueGenerator.java +++ b/src/java/com/samskivert/jdbc/depot/ValueGenerator.java @@ -53,7 +53,7 @@ public abstract class ValueGenerator public abstract boolean isPostFactum (); /** - * Prepares the generator for operation. + * Ensures the generator is prepared for operation, creating it (only) if necessary. */ public abstract void init (Connection conn, DatabaseLiaison liaison) throws SQLException;