You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Fred Gilbart (JIRA)" <ji...@apache.org> on 2018/02/16 17:39:00 UTC
[jira] [Closed] (CAY-2409) No PK column 'uuid' found in data row
[ https://issues.apache.org/jira/browse/CAY-2409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fred Gilbart closed CAY-2409.
-----------------------------
Resolution: Not A Bug
> No PK column 'uuid' found in data row
> -------------------------------------
>
> Key: CAY-2409
> URL: https://issues.apache.org/jira/browse/CAY-2409
> Project: Cayenne
> Issue Type: Bug
> Components: Core Library
> Affects Versions: 4.0.B2
> Reporter: Fred Gilbart
> Priority: Minor
>
> I'm using java.util.UUID for every PK, with a UUIDGenerator {color:#000080}implements {color}PkGenerator, and a CayenneGenerated Strategy.
> When i try to query any table using
> {color:#000080}new {color}SQLTemplate(Enterprise.{color:#000080}class{color}, {color:#008000}"select * from t_enterprises "{color}) I receive a "No PK column 'uuid' found in data row" error.
> With debug I can see on org.apache.cayenne.access.ObjectResolver (216)
> {color:#000080}if{color}(!dataRow.containsKey(key)) : my key is 'uuid' (lowercase), dataRow contains 'UUID' (uppercase) which lead to the error.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)