#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
@@ -1,8 +1,6 @@
package io.ebeaninternal.server.query;
import io.ebeaninternal.api.SpiQuery;
import io.ebeaninternal.server.deploy.BeanProperty;
import io.ebeaninternal.server.deploy.BeanPropertyAssocMany;
import java.util.ArrayList;
import java.util.List;
@@ -18,7 +16,7 @@ class SqlTree {
/**
* Property if resultSet contains master and detail rows.
*/
private final BeanPropertyAssocMany<?> manyProperty;
private final STreePropertyAssocMany manyProperty;
private final Set<String> includes;
@@ -38,7 +36,7 @@ class SqlTree {
/**
* Encrypted Properties require additional binding.
*/
private final BeanProperty[] encryptedProps;
private final STreeProperty[] encryptedProps;
/**
* Where clause for inheritance.
@@ -51,7 +49,7 @@ class SqlTree {
* Create the SqlSelectClause.
*/
SqlTree(String summary, SqlTreeNode rootNode, String distinctOn, String selectSql, String fromSql, String groupBy, String inheritanceWhereSql,
BeanProperty[] encryptedProps, BeanPropertyAssocMany<?> manyProperty, Set<String> includes, boolean includeJoins) {
STreeProperty[] encryptedProps, STreePropertyAssocMany manyProperty, Set<String> includes, boolean includeJoins) {
this.summary = summary;
this.rootNode = rootNode;
@@ -147,11 +145,11 @@ class SqlTree {
* Return the property that is associated with the many. There can only be one
* per SqlSelect. This can be null.
*/
BeanPropertyAssocMany<?> getManyProperty() {
STreePropertyAssocMany getManyProperty() {
return manyProperty;
}
BeanProperty[] getEncryptedProps() {
STreeProperty[] getEncryptedProps() {
return encryptedProps;
}