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:
@@ -181,8 +181,9 @@ public class DepotMarshaller<T extends PersistentRecord>
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// if we did not find a schema version field, freak out
|
// if we did not find a schema version field, freak out (but not for computed records, for
|
||||||
if (_schemaVersion <= 0) {
|
// whom there is no table)
|
||||||
|
if (_tableName != null && _schemaVersion <= 0) {
|
||||||
throw new IllegalStateException(
|
throw new IllegalStateException(
|
||||||
pClass.getName() + "." + SCHEMA_VERSION_FIELD + " must be greater than zero.");
|
pClass.getName() + "." + SCHEMA_VERSION_FIELD + " must be greater than zero.");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user