Don't require a schema version for computed records.

This commit is contained in:
Michael Bayne
2008-08-20 01:28:31 +00:00
parent a670beb665
commit 8dec5386f2
@@ -181,8 +181,9 @@ public class DepotMarshaller<T extends PersistentRecord>
}
// 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.");
}