db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Fox (JIRA)" <j...@apache.org>
Subject [jira] [Created] (TORQUE-243) Criterion gets modified by Criteria
Date Mon, 12 Nov 2012 20:07:12 GMT
Thomas Fox created TORQUE-243:
---------------------------------

             Summary: Criterion gets modified by Criteria
                 Key: TORQUE-243
                 URL: https://issues.apache.org/jira/browse/TORQUE-243
             Project: Torque
          Issue Type: Bug
    Affects Versions: 4.0-beta1
            Reporter: Thomas Fox
            Assignee: Thomas Fox
             Fix For: 4.0-beta2


In the situation
Criterion criterion = new Criterion(SomePeer.COLUMN, value);
Criteria criteria = new Criteria().where(criterion);
criteria.and(SomePeer, someOtherColumn);

the criteria.and() in the last line also unexpectedly changes the original criterion.
Expected behaviour: The Criterion should not be changed by changing the criteria object.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message