DATAES-130 Added support for Spel Expressions in Type
- Added support for Spel Expressions in index type - Renamed SpELEntityTest to SpELEntityTests so they run when called from maven
This commit is contained in:
committed by
Artur Konczak
parent
1255dfa89d
commit
37802761ed
@@ -95,7 +95,8 @@ public class SimpleElasticsearchPersistentEntity<T> extends BasicPersistentEntit
|
||||
|
||||
@Override
|
||||
public String getIndexType() {
|
||||
return indexType;
|
||||
Expression expression = parser.parseExpression(indexType, ParserContext.TEMPLATE_EXPRESSION);
|
||||
return expression.getValue(context, String.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user