Package com.cognifide.slice.mapper.annotation

Examples of com.cognifide.slice.mapper.annotation.JcrProperty


   *
   * @param field field to get associated property name for
   * @return property name associated with given field, never null.
   */
  private String getPropertyName(Field field) {
    final JcrProperty annotation = field.getAnnotation(JcrProperty.class);
    if ((annotation != null) && StringUtils.isNotBlank(annotation.value())) {
      return annotation.value();
    }
    return field.getName();
  }
View Full Code Here


   *
   * @param field field to get associated property name for
   * @return property name associated with given field, never null.
   */
  private String getPropertyName(Field field) {
    final JcrProperty annotation = field.getAnnotation(JcrProperty.class);
    if ((annotation != null) && StringUtils.isNotBlank(annotation.value())) {
      return annotation.value();
    }
    return field.getName();
  }
View Full Code Here

TOP

Related Classes of com.cognifide.slice.mapper.annotation.JcrProperty

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.