Uploaded image for project: 'JDO'
  1. JDO
  2. JDO-660

Ability to specify positioning of field 'column(s)' in datastore "table"

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • JDO 3.1-rc1
    • api, specification, tck
    • None

    Description

      With an RDBMS datastore, when generating the schema, it is desirable to be able to specify the positioning of the column(s) of a field in the generated table.
      With spreadsheet documents, it is critical to be able to define which column number is used for a particular field.
      With other datastores it is also likely desirable.

      To achieve this I propose adding an attribute to the XML <column> called "position". Similarly for the @Column annotation.
      This can take integer values with 0-origin.

      Complications :
      1. how this is handled when we have inheritance. If a root class has subclass-table inheritance, then those fields are persisted into the tables of all subclasses, and we may want to override the positions for those individually - to that end the user can override the metadata of the superclass fields.
      2. anything else ?

      Attachments

        1. column_position.patch
          3 kB
          Andy Jefferson

        Activity

          People

            clr Craig L Russell
            andyj Andy Jefferson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: