io.ebeaninternal.server.persist.MergeNodeAssocManyToMany Maven / Gradle / Ivy
package io.ebeaninternal.server.persist;
import io.ebean.SqlUpdate;
import io.ebean.bean.EntityBean;
import io.ebeaninternal.api.SpiEbeanServer;
import io.ebeaninternal.api.SpiTransaction;
import io.ebeaninternal.server.deploy.BeanPropertyAssocMany;
import io.ebeaninternal.server.deploy.IntersectionTable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;
/**
* Node for processing merge on ManyToMany properties.
*/
final class MergeNodeAssocManyToMany extends MergeNode {
private final BeanPropertyAssocMany> many;
MergeNodeAssocManyToMany(String fullPath, BeanPropertyAssocMany> property) {
super(fullPath, property);
this.many = property;
}
@Override
public void merge(MergeRequest request) {
EntityBean parentBean = request.getBean();
Collection beans = many.rawCollection(parentBean);
Collection outlines = many.rawCollection(request.getOutline());
Map
© 2015 - 2024 Weber Informatics LLC | Privacy Policy