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

Implement DataObject validation as DataChannelFilter

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.1M2
    • None
    • Core Library
    • None

    Description

      Another task that takes an existing Cayenne feature and brings it to DI, making it easier to manage. Cayenne DataContext validates objects on commit by calling predefined callback methods:

      http://cayenne.apache.org/doc30/dataobject-validation.html

      We need to take the existing validation code and implement it as org.apache.cayenne.DataChannelFilter. Filter approach should hopefully be more flexible than current placement of this logic in DataContext. This will require some design effort - figuring out how to move this piece into a filter, while preserving the commit sequence; installing default filters on Cayenne stack startup (right now we don't have any built-in filters), etc.

      Attachments

        1. ValidationFilter.patch
          11 kB
          Dzmitry Kazimirchyk
        2. data-context-filter-chain.patch
          23 kB
          Dzmitry Kazimirchyk

        Activity

          People

            demitri Dzmitry Kazimirchyk
            demitri Dzmitry Kazimirchyk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: