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

Allow storing UUIDs in binary columns

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 5.0-M2
    • None
    • None

    Description

      Currently, Cayenne UUIDType is defined as "ValueObjectType<UUID, String>", but storing UUID values in char columns is wasteful. We should be using binary columns, and that requires a new "ValueObjectType<UUID, byte[]>". Attached is an example from one of my projects, with tests. Let's work on integrating this to Cayenne

      Attachments

        1. BinUUIDValueTypeTest.java
          0.9 kB
          Andrus Adamchik
        2. BinUUIDValueType.java
          1 kB
          Andrus Adamchik

        Activity

          People

            Unassigned Unassigned
            andrus Andrus Adamchik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: