You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Xiaoqin Feng (JIRA)" <ji...@apache.org> on 2009/12/28 19:53:29 UTC

[jira] Commented: (OPENJPA-1449) TableGenerator pkColumnName / valueColumnName cannot be "name" / "value" respectively

    [ https://issues.apache.org/jira/browse/OPENJPA-1449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12794868#action_12794868 ] 

Xiaoqin Feng commented on OPENJPA-1449:
---------------------------------------

I am on vacation from 12/20/2009  to 12/26/2009.

If you have any question on deployment and JEE bugs, please contact Saurabh Arora or my manager Maruthi Nuthikattu.

For emergency, contact me at 925-209-5517.


> TableGenerator pkColumnName / valueColumnName cannot be "name" / "value" respectively
> -------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1449
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1449
>             Project: OpenJPA
>          Issue Type: Bug
>    Affects Versions: 1.2.1
>         Environment: IBM 1.5 JDK
> databasePlatform=org.apache.openjpa.jdbc.sql.SQLServerDictionary
>            Reporter: John Selby
>            Priority: Minor
>
> 	@Id
> 	@GeneratedValue(strategy=GenerationType.TABLE,generator="KeyGen")
> 	@TableGenerator(name="KeyGen", table="rtt_sequence_number", pkColumnName="name",
>         valueColumnName="value", pkColumnValue="como")
> Results in a query:
> SELECT VALUE0 FROM rtt_sequence_number WITH (UPDLOCK) WHERE NAME0 = ? [params=(String) como]
> The extra "zero" appended to the end of the string causes the query to fail.
> Using any other values for pkColumnName and valueColumnName results in valid SQL (where the values for pkColumnName and valueColumnName match the annotation)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.