mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-09 16:43:17 +00:00
Remove underlying Scala support
This commit is contained in:
1 parent
72ae11046e
commit
0e5157969d
18 files changed
+615
-956
No files matched your search
@@ -87,9 +87,7 @@ public class BeanPropertyAssocMany<T> extends BeanPropertyAssoc<T> {
|
||||
String deleteByParentIdSql;
|
||||
String deleteByParentIdInSql;
|
||||
|
||||
|
||||
final CollectionTypeConverter typeConverter;
|
||||
|
||||
|
||||
/**
|
||||
* Create this property.
|
||||
*/
|
||||
@@ -99,7 +97,7 @@ public class BeanPropertyAssocMany<T> extends BeanPropertyAssoc<T> {
|
||||
this.manyToMany = deploy.isManyToMany();
|
||||
this.serverName = descriptor.getServerName();
|
||||
this.manyType = deploy.getManyType();
|
||||
this.typeConverter = manyType.getTypeConverter();
|
||||
|
||||
this.mapKey = deploy.getMapKey();
|
||||
this.fetchOrderBy = deploy.getFetchOrderBy();
|
||||
|
||||
@@ -147,19 +145,6 @@ public class BeanPropertyAssocMany<T> extends BeanPropertyAssoc<T> {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the underlying List Set or Map.
|
||||
* For unwrapping scala collection types etc.
|
||||
*/
|
||||
public Object getValueUnderlying(Object bean) {
|
||||
|
||||
Object value = getValue(bean);
|
||||
if (typeConverter != null){
|
||||
value = typeConverter.toUnderlying(value);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getValue(Object bean) {
|
||||
return super.getValue(bean);
|
||||
@@ -172,17 +157,11 @@ public class BeanPropertyAssocMany<T> extends BeanPropertyAssoc<T> {
|
||||
|
||||
@Override
|
||||
public void setValue(Object bean, Object value) {
|
||||
if (typeConverter != null){
|
||||
value = typeConverter.toWrapped(value);
|
||||
}
|
||||
super.setValue(bean, value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setValueIntercept(Object bean, Object value) {
|
||||
if (typeConverter != null){
|
||||
value = typeConverter.toWrapped(value);
|
||||
}
|
||||
super.setValueIntercept(bean, value);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user