public ClassDescriptor getDescriptor() { if (isAttribute()) { //TODO: add support for treat on attributes throw QueryException.couldNotFindCastDescriptor(castClass, getBaseExpression()); } if (descriptor == null) { ClassDescriptor rootDescriptor = typeExpressionBase.getDescriptor(); descriptor = convertToCastDescriptor(rootDescriptor, getSession()); } return descriptor; }
public ClassDescriptor getDescriptor() { if (isAttribute()) { //TODO: add support for treat on attributes throw QueryException.couldNotFindCastDescriptor(castClass, getBaseExpression()); } if (descriptor == null) { ClassDescriptor rootDescriptor = typeExpressionBase.getDescriptor(); descriptor = convertToCastDescriptor(rootDescriptor, getSession()); } return descriptor; }
throw QueryException.couldNotFindCastDescriptor(castClass, getBaseExpression()); throw QueryException.castMustUseInheritance(getBaseExpression()); throw QueryException.couldNotFindCastDescriptor(castClass, getBaseExpression());
throw QueryException.couldNotFindCastDescriptor(castClass, getBaseExpression()); throw QueryException.castMustUseInheritance(getBaseExpression()); throw QueryException.couldNotFindCastDescriptor(castClass, getBaseExpression());