mirror of https://github.com/apache/openjpa.git
Improved error message.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@485804 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d85fbdee04
commit
9dcdd3a35d
|
@ -638,8 +638,10 @@ public class ExpressionStoreQuery
|
||||||
public DataStoreExecutor(ExpressionStoreQuery q,
|
public DataStoreExecutor(ExpressionStoreQuery q,
|
||||||
ClassMetaData meta, boolean subclasses,
|
ClassMetaData meta, boolean subclasses,
|
||||||
ExpressionParser parser, Object parsed) {
|
ExpressionParser parser, Object parsed) {
|
||||||
_meta = meta;
|
|
||||||
_metas = q.getIndependentExpressionCandidates(meta, subclasses);
|
_metas = q.getIndependentExpressionCandidates(meta, subclasses);
|
||||||
|
if (_metas.length == 0)
|
||||||
|
throw new UserException(_loc.get("query-unmapped", meta));
|
||||||
|
_meta = meta;
|
||||||
_subs = subclasses;
|
_subs = subclasses;
|
||||||
_parser = parser;
|
_parser = parser;
|
||||||
|
|
||||||
|
|
|
@ -231,6 +231,7 @@ bad-grouping: Your query on type "{0}" with filter "{1}" is invalid. Your \
|
||||||
select and having clauses must only include aggregates or values that also \
|
select and having clauses must only include aggregates or values that also \
|
||||||
appear in your grouping clause.
|
appear in your grouping clause.
|
||||||
query-nosupport: The "{0}" query type does not support this operation.
|
query-nosupport: The "{0}" query type does not support this operation.
|
||||||
|
query-unmapped: You cannot query unmapped type "{0}".
|
||||||
range-too-big: The range of the query is too big. Start index: "{0}", end \
|
range-too-big: The range of the query is too big. Start index: "{0}", end \
|
||||||
index: "{1}". The range must be less than Integer.MAX_VALUE.
|
index: "{1}". The range must be less than Integer.MAX_VALUE.
|
||||||
invalid-range: The query range from {0} to {1} is not valid.
|
invalid-range: The query range from {0} to {1} is not valid.
|
||||||
|
|
Loading…
Reference in New Issue