[forge-issues] [JBoss JIRA] (FORGE-1725) Add support for List/Collection/Map in relationship valued JPA attributes

Krum Bakalsky (JIRA) issues at jboss.org
Wed Apr 2 16:57:12 EDT 2014


     [ https://issues.jboss.org/browse/FORGE-1725?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Krum Bakalsky updated FORGE-1725:
---------------------------------

    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).

  was:
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


    
> Add support for List/Collection/Map in relationship valued JPA attributes
> -------------------------------------------------------------------------
>
>                 Key: FORGE-1725
>                 URL: https://issues.jboss.org/browse/FORGE-1725
>             Project: Forge
>          Issue Type: Enhancement
>          Components: Java EE
>            Reporter: Krum Bakalsky
>            Priority: Minor
>
> 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).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the forge-issues mailing list