Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-657

Removing/Deprecating ExtendedType.validateProperty()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0
    • 3.0M1, 3.0
    • Core Library
    • 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.

      Attachments

        Activity

          People

            andrus Andrus Adamchik
            andrus Andrus Adamchik
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: