diff --git a/src/java/com/samskivert/jdbc/depot/DepotMarshaller.java b/src/java/com/samskivert/jdbc/depot/DepotMarshaller.java index ec36ba6..d77d407 100644 --- a/src/java/com/samskivert/jdbc/depot/DepotMarshaller.java +++ b/src/java/com/samskivert/jdbc/depot/DepotMarshaller.java @@ -181,8 +181,9 @@ public class DepotMarshaller } - // if we did not find a schema version field, freak out - if (_schemaVersion <= 0) { + // if we did not find a schema version field, freak out (but not for computed records, for + // whom there is no table) + if (_tableName != null && _schemaVersion <= 0) { throw new IllegalStateException( pClass.getName() + "." + SCHEMA_VERSION_FIELD + " must be greater than zero."); }