#115 - Mapping - Add support for @ElementCollection enhancement

Initial support - add simple Set support and Json support for simple List and Set.
This commit is contained in:
Rob Bygrave
2018-03-20 17:24:35 +13:00
parent 74a9019535
commit 85c4385498
19 changed files with 422 additions and 48 deletions
@@ -0,0 +1,28 @@
package io.ebeaninternal.server.deploy;
import java.util.LinkedHashMap;
import java.util.Map;
class ElementHelpMap implements ElementHelp {
@Override
public ElementCollector createCollector() {
return new Collector();
}
private static class Collector implements ElementCollector {
private Map<Object, Object> map = new LinkedHashMap<>();
@Override
public void addElement(Object element) {
throw new RuntimeException("asd");
//map.put()
}
@Override
public Object collection() {
return map;
}
}
}