Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0
-
None
Description
ExtendedType.validateProperty() is out of place - it is used in CayenneDataObject self validation and requires CDO to access DataNode, which is a bad idea. I found only three standard types that actually implement validation:
CharType (checks for String max length)
BooleanType (checks for NOT NULL)
ByteArrayType (checkes for byte[] max length)
all these validations can be done simply by looking at the DbAttribute, so we can remove it without losing functionality.
I plan to leave the method around as deprecated, but remove invocations from the code.