Andrus Adamchik created CAY-2012:
------------------------------------

             Summary: ObjectSelect: eiliminating methods that reset query state
                 Key: CAY-2012
                 URL: https://issues.apache.org/jira/browse/CAY-2012
             Project: Cayenne
          Issue Type: Improvement
            Reporter: Andrus Adamchik
            Assignee: Andrus Adamchik


There was a discussion on how ObjectSelect API is confusing in that it contains 
methods that append to the existing options, as well as methods that reset the 
option state and start fresh: http://markmail.org/message/f4dsghqzp6ges6ya

The consensus seems to be that we can get rid of resetting methods.

Unfortunately to preserve long term API sanity, we'll have to make changes that 
are not compatible with 4.0.M2 - namely get rid of all "add" methods, and 
redefine the existing reset methods to append to the query state. Namely:

* addOrderBy - gone
* orderBy - append instead of reset

* addPrefetch - gone
* prefetch - merge instead of reset

* where - behave as "and" instead of reset



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to