* @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();