You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Maxim Solodovnik (Jira)" <ji...@apache.org> on 2026/08/20 09:28:00 UTC
[jira] [Updated] (OPENJPA-2949) ID()/VERSION() limited to equality against parameters
[ https://issues.apache.org/jira/browse/OPENJPA-2949?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maxim Solodovnik updated OPENJPA-2949:
--------------------------------------
Description:
Discussion link: https://github.com/apache/openjpa/pull/144#discussion_r3682999176
*(medium)* {{entity_id_or_version_comp()}} only allows {{ID(x)/VERSION(x)}} compared with {{=/<>}} against an input parameter. Spec-legal forms like {{ID(e) = 5}}, {{VERSION(e) >= :v}} or {{ID(a) = ID(b)}} do not parse - intentional first step, or should these functions be reachable from the general comparison/arithmetic productions?
was:
Discussion link: https://github.com/apache/openjpa/pull/144#discussion_r3682999176
(medium) entity_id_or_version_comp() only allows ID(x)/VERSION(x) compared with =/<> against an input parameter. Spec-legal forms like ID(e) = 5, VERSION(e) >= :v or ID(a) = ID(b) do not parse - intentional first step, or should these functions be reachable from the general comparison/arithmetic productions?
> ID()/VERSION() limited to equality against parameters
> -----------------------------------------------------
>
> Key: OPENJPA-2949
> URL: https://issues.apache.org/jira/browse/OPENJPA-2949
> Project: OpenJPA
> Issue Type: Sub-task
> Components: jpa
> Affects Versions: 4.2.0
> Reporter: Maxim Solodovnik
> Assignee: Romain Manni-Bucau
> Priority: Major
> Fix For: 4.2.0
>
>
> Discussion link: https://github.com/apache/openjpa/pull/144#discussion_r3682999176
> *(medium)* {{entity_id_or_version_comp()}} only allows {{ID(x)/VERSION(x)}} compared with {{=/<>}} against an input parameter. Spec-legal forms like {{ID(e) = 5}}, {{VERSION(e) >= :v}} or {{ID(a) = ID(b)}} do not parse - intentional first step, or should these functions be reachable from the general comparison/arithmetic productions?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)