You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by "Thomas Fox (JIRA)" <ji...@apache.org> on 2012/11/12 21:07:12 UTC
[jira] [Created] (TORQUE-243) Criterion gets modified by Criteria
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
[jira] [Resolved] (TORQUE-243) Criterion gets modified by Criteria
Posted by "Thomas Fox (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TORQUE-243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Fox resolved TORQUE-243.
-------------------------------
Resolution: Fixed
> 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
[jira] [Reopened] (TORQUE-243) Criterion gets modified by Criteria
Posted by "Thomas Fox (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TORQUE-243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Fox reopened TORQUE-243:
-------------------------------
To have consistent behavior, the same should be valid for Criterion.and and Criterion.or
> 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
[jira] [Resolved] (TORQUE-243) Criterion gets modified by Criteria
Posted by "Thomas Fox (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TORQUE-243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Fox resolved TORQUE-243.
-------------------------------
Resolution: Fixed
> 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