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

cgen: meaningful PK with boxed type ends up with primitive type in generated source

    Details

      Description

      If you have:
      1) modeled a primary key as an ObjAttribute, like customerPK
      2) modeled it as an object type, like java.lang.Long
      3) are using the Cayenne-Generated (Default) PK generation strategy
      Then Cayenne won't generate any PKs for the entity and will just use zero over and over. This can be worked around by switching the attribute's type to a primitive (like long).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ntimofeev Nikita Timofeev
                Reporter:
                aarrsseni Arseni Bulatski
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: