#1571 - NPE in cacheable bean with embeddedid on delete

This commit is contained in:
rob bygrave
2018-12-05 23:03:15 +13:00
parent 0405ceb96c
commit e4088c5fbe
16 changed files with 142 additions and 62 deletions
@@ -5,7 +5,7 @@ import io.ebean.bean.EntityBean;
import io.ebeaninternal.api.SpiQuery;
import io.ebeaninternal.server.deploy.DbReadContext;
import io.ebeaninternal.server.deploy.DbSqlContext;
import io.ebeaninternal.server.type.ScalarType;
import io.ebeaninternal.server.type.ScalarDataReader;
import java.sql.SQLException;
import java.util.List;
@@ -80,9 +80,9 @@ interface SqlTreeNode {
boolean hasMany();
/**
* Return the property for singleAttribute query.
* Return the reader for the single attribute query.
*/
ScalarType<?> getSingleAttributeScalarType();
ScalarDataReader<?> getSingleAttributeReader();
/**
* Return true if the query is known to only have a single property selected.