You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Albert Lee (JIRA)" <ji...@apache.org> on 2008/04/09 05:39:25 UTC
[jira] Created: (OPENJPA-565) Duplicate @NamedQuery terminates
subsequent @NameQuery definitions in @NamedQueries
Duplicate @NamedQuery terminates subsequent @NameQuery definitions in @NamedQueries
------------------------------------------------------------------------------------
Key: OPENJPA-565
URL: https://issues.apache.org/jira/browse/OPENJPA-565
Project: OpenJPA
Issue Type: Bug
Components: kernel
Affects Versions: 1.0.2, 1.0.3, 1.1.0
Reporter: Albert Lee
Assignee: Albert Lee
Priority: Minor
Fix For: 1.0.3, 1.1.0
If duplicate @NameQuery is defined in @NameQueries as in,
@NamedQueries (
{ @NamedQuery(name="findBasicAByBasicBid", query="select t.entitya from BasicB t WHERE t.id = ?1" ),
@NamedQuery(name="findBasicAByBasicBid", query="select t.entitya from BasicB t WHERE t.id = ?1"),
@NamedQuery(name="findInhAddress", query="select t from InhAddress t)
})
a warning message is posted in the log
openjpa.MetaData - Found duplicate query "findBasicAByBasicBid" in "class com.ibm.ws.query.pdq.entities.TypeTestBean". Ignoring.
Although the message said the query is ignored, it actually terminates the detection of the remaining NamedQuery definitions.
Albert Lee.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (OPENJPA-565) Duplicate @NamedQuery terminates
subsequent @NameQuery definitions in @NamedQueries
Posted by "Albert Lee (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12587988#action_12587988 ]
Albert Lee commented on OPENJPA-565:
------------------------------------
Clarification:
If query.name() is found in the repository cache, the "before patch" behavior is posting a "ignore" warning message and stop parsing the remaining @NamedQuery in the queries input parameter. Basically it is an no-op. The "after patch" behavior remains the same for @NamedQuery, since there is only one entry in the queries list. The only change in behavior is for @NamedQueries. If a duplicate NameQuery is found, it used to stop parsing the remaining @NamedQuery. After the patch, it will ignore the duplicated entry and continue to parse the remaining entries in the queries input list.
Albert Lee.
> Duplicate @NamedQuery terminates subsequent @NameQuery definitions in @NamedQueries
> ------------------------------------------------------------------------------------
>
> Key: OPENJPA-565
> URL: https://issues.apache.org/jira/browse/OPENJPA-565
> Project: OpenJPA
> Issue Type: Bug
> Components: kernel
> Affects Versions: 1.0.2, 1.0.3, 1.1.0
> Reporter: Albert Lee
> Assignee: Albert Lee
> Priority: Minor
> Fix For: 1.0.3, 1.1.0
>
>
> If duplicate @NameQuery is defined in @NameQueries as in,
> @NamedQueries (
> { @NamedQuery(name="findBasicAByBasicBid", query="select t.entitya from BasicB t WHERE t.id = ?1" ),
> @NamedQuery(name="findBasicAByBasicBid", query="select t.entitya from BasicB t WHERE t.id = ?1"),
> @NamedQuery(name="findInhAddress", query="select t from InhAddress t)
> })
> a warning message is posted in the log
> openjpa.MetaData - Found duplicate query "findBasicAByBasicBid" in "class com.ibm.ws.query.pdq.entities.TypeTestBean". Ignoring.
> Although the message said the query is ignored, it actually terminates the detection of the remaining NamedQuery definitions.
> Albert Lee.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (OPENJPA-565) Duplicate @NamedQuery terminates
subsequent @NameQuery definitions in @NamedQueries
Posted by "Albert Lee (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Albert Lee resolved OPENJPA-565.
--------------------------------
Resolution: Fixed
Fix Version/s: 1.2.0
> Duplicate @NamedQuery terminates subsequent @NameQuery definitions in @NamedQueries
> ------------------------------------------------------------------------------------
>
> Key: OPENJPA-565
> URL: https://issues.apache.org/jira/browse/OPENJPA-565
> Project: OpenJPA
> Issue Type: Bug
> Components: kernel
> Affects Versions: 1.0.2, 1.0.3, 1.1.0
> Reporter: Albert Lee
> Assignee: Albert Lee
> Priority: Minor
> Fix For: 1.0.3, 1.1.0, 1.2.0
>
>
> If duplicate @NameQuery is defined in @NameQueries as in,
> @NamedQueries (
> { @NamedQuery(name="findBasicAByBasicBid", query="select t.entitya from BasicB t WHERE t.id = ?1" ),
> @NamedQuery(name="findBasicAByBasicBid", query="select t.entitya from BasicB t WHERE t.id = ?1"),
> @NamedQuery(name="findInhAddress", query="select t from InhAddress t)
> })
> a warning message is posted in the log
> openjpa.MetaData - Found duplicate query "findBasicAByBasicBid" in "class com.ibm.ws.query.pdq.entities.TypeTestBean". Ignoring.
> Although the message said the query is ignored, it actually terminates the detection of the remaining NamedQuery definitions.
> Albert Lee.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (OPENJPA-565) Duplicate @NamedQuery terminates
subsequent @NameQuery definitions in @NamedQueries
Posted by "Albert Lee (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Albert Lee closed OPENJPA-565.
------------------------------
> Duplicate @NamedQuery terminates subsequent @NameQuery definitions in @NamedQueries
> ------------------------------------------------------------------------------------
>
> Key: OPENJPA-565
> URL: https://issues.apache.org/jira/browse/OPENJPA-565
> Project: OpenJPA
> Issue Type: Bug
> Components: kernel
> Affects Versions: 1.0.2, 1.0.3, 1.1.0
> Reporter: Albert Lee
> Assignee: Albert Lee
> Priority: Minor
> Fix For: 1.0.3, 1.1.0, 1.2.0
>
>
> If duplicate @NameQuery is defined in @NameQueries as in,
> @NamedQueries (
> { @NamedQuery(name="findBasicAByBasicBid", query="select t.entitya from BasicB t WHERE t.id = ?1" ),
> @NamedQuery(name="findBasicAByBasicBid", query="select t.entitya from BasicB t WHERE t.id = ?1"),
> @NamedQuery(name="findInhAddress", query="select t from InhAddress t)
> })
> a warning message is posted in the log
> openjpa.MetaData - Found duplicate query "findBasicAByBasicBid" in "class com.ibm.ws.query.pdq.entities.TypeTestBean". Ignoring.
> Although the message said the query is ignored, it actually terminates the detection of the remaining NamedQuery definitions.
> Albert Lee.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.