Examples of GraphProperty


Examples of com.dooapp.gaedo.blueprints.annotations.GraphProperty

   * @return an edge name (by default property container class name + "." +
   *         property name
   */
  public static String getEdgeNameFor(Property p) {
    if (p.getAnnotation(GraphProperty.class) != null) {
      GraphProperty graph = p.getAnnotation(GraphProperty.class);
      // Test added to avoid default value (which defaults name to "")
      if (graph.name() != null && graph.name().trim().length() > 0)
        return graph.name();
    }
    if (p.getAnnotation(Column.class) != null) {
      Column column = p.getAnnotation(Column.class);
      if (column.name() != null && column.name().trim().length() > 0)
        return column.name();
View Full Code Here

Examples of com.dooapp.gaedo.blueprints.annotations.GraphProperty

   * @return an edge name (by default property container class name + "." +
   *         property name
   */
  public static String getEdgeNameFor(Property p) {
    if (p.getAnnotation(GraphProperty.class) != null) {
      GraphProperty graph = p.getAnnotation(GraphProperty.class);
      // Test added to avoid default value (which defaults name to "")
      if (graph.name() != null && graph.name().trim().length() > 0)
        return graph.name();
    }
    if (p.getAnnotation(Column.class) != null) {
      Column column = p.getAnnotation(Column.class);
      if (column.name() != null && column.name().trim().length() > 0)
        return column.name();
View Full Code Here

Examples of com.dooapp.gaedo.blueprints.annotations.GraphProperty

   * @param p source property
   * @return an edge name (by default property container class name + "." + property name
   */
  public static String getEdgeNameFor(Property p) {
    if(p.getAnnotation(GraphProperty.class)!=null) {
      GraphProperty graph = p.getAnnotation(GraphProperty.class);
      // Test added to avoid default value (which defaults name to "")
      if(graph.name()!=null && graph.name().trim().length()>0)
        return graph.name();
    }
    if(p.getAnnotation(Column.class)!=null) {
      Column column = p.getAnnotation(Column.class);
      if(column.name()!=null && column.name().trim().length()>0)
        return column.name();
View Full Code Here

Examples of com.dooapp.gaedo.blueprints.annotations.GraphProperty

   * @return an edge name (by default property container class name + "." +
   *         property name
   */
  public static String getEdgeNameFor(Property p) {
    if (p.getAnnotation(GraphProperty.class) != null) {
      GraphProperty graph = p.getAnnotation(GraphProperty.class);
      // Test added to avoid default value (which defaults name to "")
      if (graph.name() != null && graph.name().trim().length() > 0)
        return graph.name();
    }
    if (p.getAnnotation(Column.class) != null) {
      Column column = p.getAnnotation(Column.class);
      if (column.name() != null && column.name().trim().length() > 0)
        return column.name();
View Full Code Here

Examples of com.dooapp.gaedo.blueprints.annotations.GraphProperty

   * @return an edge name (by default property container class name + "." +
   *         property name
   */
  public static String getEdgeNameFor(Property p) {
    if (p.getAnnotation(GraphProperty.class) != null) {
      GraphProperty graph = p.getAnnotation(GraphProperty.class);
      // Test added to avoid default value (which defaults name to "")
      if (graph.name() != null && graph.name().trim().length() > 0)
        return graph.name();
    }
    if (p.getAnnotation(Column.class) != null) {
      Column column = p.getAnnotation(Column.class);
      if (column.name() != null && column.name().trim().length() > 0)
        return column.name();
View Full Code Here

Examples of com.dooapp.gaedo.blueprints.annotations.GraphProperty

   * @return an edge name (by default property container class name + "." +
   *         property name
   */
  public static String getEdgeNameFor(Property p) {
    if (p.getAnnotation(GraphProperty.class) != null) {
      GraphProperty graph = p.getAnnotation(GraphProperty.class);
      // Test added to avoid default value (which defaults name to "")
      if (graph.name() != null && graph.name().trim().length() > 0)
        return graph.name();
    }
    if (p.getAnnotation(Column.class) != null) {
      Column column = p.getAnnotation(Column.class);
      if (column.name() != null && column.name().trim().length() > 0)
        return column.name();
View Full Code Here

Examples of com.dooapp.gaedo.blueprints.annotations.GraphProperty

   * @return an edge name (by default property container class name + "." +
   *         property name
   */
  public static String getEdgeNameFor(Property p) {
    if (p.getAnnotation(GraphProperty.class) != null) {
      GraphProperty graph = p.getAnnotation(GraphProperty.class);
      // Test added to avoid default value (which defaults name to "")
      if (graph.name() != null && graph.name().trim().length() > 0)
        return graph.name();
    }
    if (p.getAnnotation(Column.class) != null) {
      Column column = p.getAnnotation(Column.class);
      if (column.name() != null && column.name().trim().length() > 0)
        return column.name();
View Full Code Here

Examples of com.dooapp.gaedo.blueprints.annotations.GraphProperty

   * @return an edge name (by default property container class name + "." +
   *         property name
   */
  public static String getEdgeNameFor(Property p) {
    if (p.getAnnotation(GraphProperty.class) != null) {
      GraphProperty graph = p.getAnnotation(GraphProperty.class);
      // Test added to avoid default value (which defaults name to "")
      if (graph.name() != null && graph.name().trim().length() > 0)
        return graph.name();
    }
    if (p.getAnnotation(Column.class) != null) {
      Column column = p.getAnnotation(Column.class);
      if (column.name() != null && column.name().trim().length() > 0)
        return column.name();
View Full Code Here

Examples of com.dooapp.gaedo.blueprints.annotations.GraphProperty

   * @return an edge name (by default property container class name + "." +
   *         property name
   */
  public static String getEdgeNameFor(Property p) {
    if (p.getAnnotation(GraphProperty.class) != null) {
      GraphProperty graph = p.getAnnotation(GraphProperty.class);
      // Test added to avoid default value (which defaults name to "")
      if (graph.name() != null && graph.name().trim().length() > 0)
        return graph.name();
    }
    if (p.getAnnotation(Column.class) != null) {
      Column column = p.getAnnotation(Column.class);
      if (column.name() != null && column.name().trim().length() > 0)
        return column.name();
View Full Code Here

Examples of org.springframework.data.neo4j.annotation.GraphProperty

        return neo4jPropertyName;
    }

    private String createNeo4jPropertyName() {
        final Neo4jPersistentEntity<?> entityClass = (Neo4jPersistentEntity<?>) getOwner();
        final GraphProperty annotation = getAnnotation(GraphProperty.class);
        if (annotation != null && annotation.propertyName() != null && !annotation.propertyName().isEmpty()) return annotation.propertyName();
        if (entityClass.useShortNames()) return getName();
        return String.format("%s.%s", entityClass.getType().getSimpleName(), getName());
    }
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.