hyperjaxb2
  1. hyperjaxb2
  2. HYPERJAXB2-3

added 'ORDER BY' clause to bag mappings

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      3

      Description

      It would be nice to allow a collectionProperty customization to define an 'ORDER
      BY ... ASC/DESC' attribute in the resulting hibernate mapping file if this
      collection will be mapped to the hibernate's bag datatype:

      <xs:element name="testing" type="xs:string" maxOccurs="unbounded" minOccurs="0">
      <xs:annotation>
      <xs:appinfo>
      <hj:complexCollectionProperty>
      <hj:no-index property="property" order="asc"/>
      </hj:complexCollectionProperty>
      </xs:appinfo>
      </xs:annotation>
      </xs:element>

      resulting hibernate mapping:
      <bag access="org.jvnet.hyperjaxb2.runtime.hibernate.accessor.ListAccessor"
      name="testing" table="..." order-by="property asc">
      <key><!-- ... --></key>
      <one-to-many class="..."/>
      </bag>

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            lexi
            Reporter:
            pret
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: