#1221 - ENH: Add a merge(bean) and merge(bean, paths)

This commit is contained in:
Rob Bygrave
2018-03-13 23:55:47 +13:00
parent 607cf3156c
commit afead2da41
37 changed files with 1804 additions and 66 deletions
@@ -0,0 +1,17 @@
package io.ebeaninternal.server.deploy;
import io.ebean.bean.BeanCollection;
import java.util.Collection;
abstract class BaseCollectionHelp<T> implements BeanCollectionHelp<T> {
@Override
public Collection underlying(Object value) {
if (value instanceof BeanCollection) {
return ((BeanCollection)value).getActualDetails();
} else {
return (Collection)value;
}
}
}