@Override public void addPersistentProperty(Neo4jPersistentProperty property) { super.addPersistentProperty(property); if (property.isAnnotationPresent(RelationshipType.class)) { this.relationshipType = property; } if (property.isUnique()) { if (this.uniqueProperty == null) { this.uniqueProperty = property; } } }