this.mapping = mapping;
// validate and initialise resolve options
Hints hints = query.getHints();
ResolveValueType resolveVal = (ResolveValueType) hints.get( Hints.RESOLVE );
boolean resolve = ResolveValueType.ALL.equals(resolveVal) || ResolveValueType.LOCAL.equals(resolveVal);
if (!resolve && resolveVal!=null && !ResolveValueType.NONE.equals(resolveVal)) {
throw new IllegalArgumentException("Resolve:" + resolveVal.getName() + " is not supported in app-schema!");
}
Integer atd = (Integer) hints.get(Hints.ASSOCIATION_TRAVERSAL_DEPTH);
resolveDepth = resolve ? atd==null? 0 : atd : 0;
resolveTimeOut = (Integer) hints.get( Hints.RESOLVE_TIMEOUT );