#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,7 +1,7 @@
package io.ebeaninternal.server.deploy;
import io.ebeaninternal.server.query.STreeProperty;
import io.ebeaninternal.server.query.SqlJoinType;
import io.ebeaninternal.server.query.SqlTreeProperty;
import io.ebeaninternal.server.type.ScalarType;
import java.util.List;
@@ -9,14 +9,14 @@ import java.util.List;
/**
* Abstract base for dynamic properties.
*/
abstract class DynamicPropertyBase implements SqlTreeProperty {
abstract class DynamicPropertyBase implements STreeProperty {
final String name;
final String fullName;
final String elPrefix;
final ScalarType<?> scalarType;
public DynamicPropertyBase(String name, String fullName, String elPrefix, ScalarType<?> scalarType) {
DynamicPropertyBase(String name, String fullName, String elPrefix, ScalarType<?> scalarType) {
this.name = name;
this.fullName = fullName;
this.elPrefix = elPrefix;
@@ -43,6 +43,11 @@ abstract class DynamicPropertyBase implements SqlTreeProperty {
return false;
}
@Override
public boolean isFormula() {
return false;
}
@Override
public String getElPrefix() {
return elPrefix;
@@ -67,4 +72,9 @@ abstract class DynamicPropertyBase implements SqlTreeProperty {
public void appendFrom(DbSqlContext ctx, SqlJoinType joinType) {
// do not add to from usually
}
@Override
public String getEncryptKeyAsString() {
return null;
}
}