Examples of idClass()


Examples of org.springframework.data.repository.RepositoryDefinition.idClass()

  private Class<? extends Serializable> resolveIdType(Class<?> repositoryInterface) {

    RepositoryDefinition annotation = repositoryInterface.getAnnotation(RepositoryDefinition.class);

    if (annotation == null || annotation.idClass() == null) {
      throw new IllegalArgumentException(String.format("Could not resolve id type of %s!", repositoryInterface));
    }

    return annotation.idClass();
  }
View Full Code Here

Examples of org.springframework.data.repository.RepositoryDefinition.idClass()

    if (annotation == null || annotation.idClass() == null) {
      throw new IllegalArgumentException(String.format("Could not resolve id type of %s!", repositoryInterface));
    }

    return annotation.idClass();
  }

  private Class<?> resolveDomainType(Class<?> repositoryInterface) {

    RepositoryDefinition annotation = repositoryInterface.getAnnotation(RepositoryDefinition.class);
View Full Code Here

Examples of org.strecks.bind.annotation.BindSelect.idClass()

      propertyName = expression.substring(lastDot + 1);
    }

    handler.setBeanLocatingExpression(beanLocatingExpression);
    handler.setBeanPropertyName(propertyName);
    handler.setBeanPropertyClass(bindAnnotation.idClass());
    handler.setBeanLookupExpression(bindAnnotation.lookupMapExpression());
    handler.setBeanPropertyIdName(bindAnnotation.targetBeanIdProperty());

    if (converter != null)
    {
View Full Code Here

Examples of org.strecks.bind.annotation.BindSelect.idClass()

    }
    else
    {
      Class<? extends Converter> converterClass = bindAnnotation.idConverter();
      converter = ReflectHelper.createInstance(converterClass, Converter.class);
      converter.setTargetClass(bindAnnotation.idClass());
      handler.setConverter(converter);
    }

    PropertyDescriptor property = BeanUtils.findPropertyForMethod(getterMethod);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.