Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2409

No PK column 'uuid' found in data row

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not A Bug
    • Affects Version/s: 4.0.B2
    • Fix Version/s: None
    • Component/s: Core Library
    • Labels:
      None

      Description

      I'm using java.util.UUID for every PK, with a UUIDGenerator implements PkGenerator, and a CayenneGenerated Strategy.

      When i try to query any table using

      new SQLTemplate(Enterprise.class, "select * from t_enterprises ") I receive a "No PK column 'uuid' found in data row" error.

      With debug I can see on org.apache.cayenne.access.ObjectResolver (216)

      if(!dataRow.containsKey(key)) : my key is 'uuid' (lowercase), dataRow contains 'UUID' (uppercase) which lead to the error.

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              fredg Fred Gilbart
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: