[ 
https://issues.apache.org/jira/browse/CAY-2409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16367633#comment-16367633
 ] 

Fred Gilbart commented on CAY-2409:
-----------------------------------

My bad :

select.setColumnNamesCapitalization(CapsStrategy.{color:#660e7a}LOWER{color}); 
fixes the issue.

> 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)

Reply via email to