Package io.jmix.core

Class EntityReferencesNormalizer

java.lang.Object
io.jmix.core.EntityReferencesNormalizer

@Component("core_EntityReferencesNormalizer") public class EntityReferencesNormalizer extends Object
Normalizes references between items of a collection.
  • Constructor Details

    • EntityReferencesNormalizer

      public EntityReferencesNormalizer()
  • Method Details

    • updateReferences

      public void updateReferences(Collection<Object> entities)
      For each entity in the collection, updates reference properties to point to instances which are items of the collection.
    • updateReferences

      public void updateReferences(Collection<Object> entities, Collection<Object> references)
      For each entity in the first collection, updates reference properties to point to instances from the second collection.