You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (Jira)" <ji...@apache.org> on 2022/09/09 10:18:00 UTC

[jira] [Created] (CAY-2760) ObjectContext.userProperties need a way to clear properties

Andrus Adamchik created CAY-2760:
------------------------------------

             Summary: ObjectContext.userProperties need a way to clear properties
                 Key: CAY-2760
                 URL: https://issues.apache.org/jira/browse/CAY-2760
             Project: Cayenne
          Issue Type: Improvement
            Reporter: Andrus Adamchik
             Fix For: 4.3.M1


I use ObjectContext.userProperties as a way of communicating state between DataChannel filters. Though it has some limitations that make it painful. The biggest one is that there's no way to remove a property stored. Even replacing the value with null doesn't work (setUserProperty("p", null) throws an exception).

Let's implement the following API:

{noformat}
ObjectContext.removeUserProperty(String)
ObjectContext.clearUserProperties()
{noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)