Uploaded image for project: 'Polygene'
  1. Polygene
  2. POLYGENE-174

Add convenience methods for List/Set/Map of values into Associations

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0
    • None

    Description

      In the UnitOfWork, we should probably add the following methods,

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

      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.

      Attachments

        1. unitofwork.patch
          11 kB
          Prince Arora

        Activity

          People

            Unassigned Unassigned
            niclas Niclas Hedhman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: