mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-18 14:58:47 +00:00
#587 - Refactor - Change JsonContext.getScalar() to JsonContext.writeScalar()
This commit is contained in:
1 parent
290ca6ba90
commit
53dd810b9a
11 files changed
+48
-84
No files matched your search
@@ -292,18 +292,14 @@ public class DefaultOrmQuery<T> implements SpiQuery<T> {
|
||||
|
||||
public String asElasticQuery() {
|
||||
|
||||
StringWriter sw = new StringWriter(200);
|
||||
JsonContext json = server.json();
|
||||
|
||||
JsonGenerator generator = json.createGenerator(sw);
|
||||
|
||||
BeanType<T> beanType = server.getPluginApi().getBeanType(this.beanType);
|
||||
ElasticExpressionContext context = new ElasticExpressionContext(generator, beanType);
|
||||
ElasticExpressionContext context = new ElasticExpressionContext(json, beanDescriptor);
|
||||
|
||||
try {
|
||||
writeElastic(context);
|
||||
context.flush();
|
||||
generatedSql = sw.toString();
|
||||
generatedSql = context.flush();
|
||||
return generatedSql;
|
||||
|
||||
} catch (IOException e) {
|
||||
|
||||
Reference in new issue
Block a user