You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@polygene.apache.org by "Prince Arora (JIRA)" <ji...@apache.org> on 2016/09/04 01:23:21 UTC
[jira] [Updated] (ZEST-174) Add convenience methods for
List/Set/Map of values into Associations
[ https://issues.apache.org/jira/browse/ZEST-174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Prince Arora updated ZEST-174:
------------------------------
Attachment: unitofwork.patch
Functionality added in UnitOfWork for List/Map/Set > Association and also prepared test case to the same.
> Add convenience methods for List/Set/Map of values into Associations
> --------------------------------------------------------------------
>
> Key: ZEST-174
> URL: https://issues.apache.org/jira/browse/ZEST-174
> Project: Zest
> Issue Type: Improvement
> Reporter: Niclas Hedhman
> 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.4#6332)