private boolean shouldUseShortNames() { final NodeEntity graphEntity = getAnnotation(NodeEntity.class); if (graphEntity != null) return graphEntity.useShortNames(); final RelationshipEntity graphRelationship = getAnnotation(RelationshipEntity.class); if (graphRelationship != null) return graphRelationship.useShortNames(); return false; }
@Override public String getRelationshipType() { if (!isRelationshipEntity()) return null; final RelationshipEntity annotation = getAnnotation(RelationshipEntity.class); return annotation.type().isEmpty() ? null : annotation.type(); }