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

No PK column 'uuid' found in data row

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Bug
    • 4.0.B2
    • None
    • Core Library
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: