Don't require a schema version for computed records.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@2365 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2008-08-20 01:28:31 +00:00
parent 1229864e8b
commit db0eec0c1a
@@ -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.");
}