Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-1725

Add support for List/Collection/Map in relationship valued JPA attributes

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • Minor
    • 3.x Future
    • None
    • Java EE
    • None

    Description

      The wizard for adding a new relationship field to an existing JPA entity class could be enhanced to offer more types for that field. Currently only java.util.Set is supported, with the java.util.HashSet as the instantiated type. As per the JPA 2.0 specification, section 2.2:

      Collection-valued persistent fields and properties must be defined in terms of one of the following collection-valued interfaces regardless of whether the entity class otherwise adheres to the JavaBeans method conventions noted above and whether field or property access is used: java.util.Collection, java.util.Set, java.util.List, java.util.Map

      I have discussed briefly this idea on the IRC channel (I == lonely_koala).

      Attachments

        Activity

          People

            Unassigned Unassigned
            kpymkata Krum Bakalsky (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: