#1737 - PersistenceException while using aggregate query on related entity

Fix excluding the ability to additionally join (off the min(manyToOne))
This commit is contained in:
rob bygrave committed 2019-06-28 20:16:05 +12:00
1 parent bb6c9c84ba
commit 24b08663af
8 files changed
+148 -44

No files matched your search

@@ -23,6 +23,7 @@ import io.ebeaninternal.server.query.SqlBeanLoad;
import io.ebeaninternal.server.query.SqlJoinType;
import io.ebeaninternal.server.type.DataReader;
import io.ebeaninternal.server.type.ScalarDataReader;
import io.ebeaninternal.server.type.ScalarType;
import javax.persistence.PersistenceException;
import java.io.IOException;
@@ -465,6 +466,10 @@ public class BeanPropertyAssocOne<T> extends BeanPropertyAssoc<T> implements STr
return targetDescriptor.getIdProperty();
}
public ScalarType getIdScalarType() {
return targetDescriptor.getIdProperty().scalarType;
}
/**
* Return the Id values from the given bean.
*/