#115 - Mapping - Add support for @ElementCollection enhancement

Initial support - simple List.
This commit is contained in:
Rob Bygrave
2018-03-20 14:22:29 +13:00
parent c44931ea25
commit 74a9019535
79 changed files with 1891 additions and 805 deletions
@@ -0,0 +1,21 @@
package io.ebeaninternal.server.query;
import io.ebean.bean.BeanCollection;
import io.ebean.bean.EntityBean;
/**
* Defines interface for adding beans to the collection which might be a List, Set or Map.
*/
public interface CQueryCollectionAdd<T> {
/**
* Create an empty collection.
*/
BeanCollection<T> createEmptyNoParent();
/**
* Add a bean to the List Set or Map.
*/
void add(BeanCollection<?> collection, EntityBean bean, boolean withCheck);
}