cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <cayenne-...@incubator.apache.org>
Subject [JIRA] Created: (CAY-657) Removing/Deprecating ExtendedType.validateProperty()
Date Wed, 20 Sep 2006 19:50:49 GMT
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


Mime
View raw message