polygene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niclas Hedhman (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (POLYGENE-174) Add convenience methods for List/Set/Map of values into Associations
Date Sat, 18 Feb 2017 02:51:44 GMT

     [ https://issues.apache.org/jira/browse/POLYGENE-174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Niclas Hedhman closed POLYGENE-174.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0

Fixed was applied back in Sept 2016

> Add convenience methods for List/Set/Map of values into Associations
> --------------------------------------------------------------------
>
>                 Key: POLYGENE-174
>                 URL: https://issues.apache.org/jira/browse/POLYGENE-174
>             Project: Polygene
>          Issue Type: Improvement
>            Reporter: Niclas Hedhman
>             Fix For: 3.0
>
>         Attachments: unitofwork.patch
>
>
> In the UnitOfWork, we should probably add the following methods,
> {code}
> <T> void toAssociations( ManyAssociation<T> assoc, List<T> values );
> <T> void toAssociations( ManyAssociation<T> assoc, Set<T> values );
> <T> void toAssociations( NamedAssociation<T> assoc, Map<T> values );
> {code}
> For each element in 'values', call the toEntity() method in UnitOfWork, and then add
it to the Association. The toEntity() will do all the heavy lifting of creating/updating the
underlying entity store.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message