Removing/Deprecating ExtendedType.validateProperty()
-----------------------------------------------------
Key: CAY-657
URL: http://issues.apache.org/cayenne/browse/CAY-657
Project: Cayenne
Type: Improvement
Components: Cayenne Core Library
Versions: 3.0
Reporter: Andrus Adamchik
Assigned to: Andrus Adamchik
Fix For: 3.0
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.
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/cayenne/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
This archive was generated by hypermail 2.0.0 : Wed Sep 20 2006 - 15:58:32 EDT