Fix PropertiesParser with "*,foo"

This commit is contained in:
Jonas Pöhler committed 2021-11-05 11:40:58 +01:00
1 parent afe98c6d90
commit 85ec1d3d84
1 file changed
+3 -1
@@ -37,7 +37,9 @@ final class OrmQueryPropertiesParser {
if (rawProperties.equals("*")) {
return ALL;
}
return new Response(false, splitRawSelect(rawProperties));
final Set<String> included = splitRawSelect(rawProperties);
final boolean selectAll = included.remove("*");
return new Response(selectAll, included);
}
/**