mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-19 23:02:24 +00:00
#710 - Behavior change - query with invalid fetch path (without properties) now throws PersistenceException
This commit is contained in:
1 parent
362ceea79b
commit
75a2633590
4 files changed
+33
-12
No files matched your search
@@ -353,7 +353,10 @@ public class OrmQueryDetail implements Serializable {
|
||||
|
||||
for (String fetchPath : fetchPaths.keySet()) {
|
||||
ElPropertyDeploy elProp = beanDescriptor.getElPropertyDeploy(fetchPath);
|
||||
if (elProp != null && elProp.containsManySince(manyFetchProperty)) {
|
||||
if (elProp == null) {
|
||||
throw new PersistenceException("Invalid fetch path " + fetchPath + " from " + beanDescriptor.getFullName());
|
||||
}
|
||||
if (elProp.containsManySince(manyFetchProperty)) {
|
||||
|
||||
// this is a join to a *ToMany
|
||||
OrmQueryProperties chunk = fetchPaths.get(fetchPath);
|
||||
|
||||
Reference in new issue
Block a user