Package org.springframework.data.mongodb.repository.query.MongoParameters

Examples of org.springframework.data.mongodb.repository.query.MongoParameters.MongoParameter


   * @see org.springframework.data.repository.query.Parameters#createParameter(org.springframework.core.MethodParameter)
   */
  @Override
  protected MongoParameter createParameter(MethodParameter parameter) {

    MongoParameter mongoParameter = new MongoParameter(parameter);

    // Detect manually annotated @Near Point and reject multiple annotated ones
    if (this.nearIndex == null && mongoParameter.isManuallyAnnotatedNearParameter()) {
      this.nearIndex = mongoParameter.getIndex();
    } else if (mongoParameter.isManuallyAnnotatedNearParameter()) {
      throw new IllegalStateException(String.format(
          "Found multiple @Near annotations ond method %s! Only one allowed!", parameter.getMethod().toString()));
    }

    return mongoParameter;
View Full Code Here

TOP

Related Classes of org.springframework.data.mongodb.repository.query.MongoParameters.MongoParameter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.