You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Rick Curtis (JIRA)" <ji...@apache.org> on 2013/02/22 14:34:13 UTC
[jira] [Closed] (OPENJPA-2054) Constant join fails
[ https://issues.apache.org/jira/browse/OPENJPA-2054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rick Curtis closed OPENJPA-2054.
--------------------------------
Resolution: Duplicate
Closing as this is a duplicate of another JIRA.
> Constant join fails
> -------------------
>
> Key: OPENJPA-2054
> URL: https://issues.apache.org/jira/browse/OPENJPA-2054
> Project: OpenJPA
> Issue Type: Bug
> Affects Versions: 2.1.0
> Reporter: Michael Spiro
> Labels: Constant, join
>
> According to the documentation (Part 3, chapter 7, paragraph 6), join criteria can be defined so that a column in the source or target table must have some constant value. The constant value should be specified in the attribute "referencedColumnName" of the @JoinColumn annotation. If the constant is a string then its value should be enclosed first in single quotes and then in double quotes like this:
> @JoinColumn(name="table.column", referencedColumnName="'value'")
> A numeric constant value needs just a single pair of double quotes:
> @JoinColumn(name="table.column", referencedColumnName="2")
> However a practical test shows that both options produce an error.
--
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