NullPointerException appears in [PersistentPropertyPathExtension#equals](https://github.com/spring-projects/spring-data-jdbc/blob/cd3d0b19b080f08de49d6c0b82f6f535f2a423f5/spring-data-relational/src/main/java/org/springframework/data/relational/core/mapping/PersistentPropertyPathExtension.java#L445), because field [PersistentPropertyPathExtension#path](https://github.com/spring-projects/spring-data-jdbc/blob/cd3d0b19b080f08de49d6c0b82f6f535f2a423f5/spring-data-relational/src/main/java/org/springframework/data/relational/core/mapping/PersistentPropertyPathExtension.java#L39) is nullable and equals ignores that **path** can be null: ``` public boolean equals(Object o) { //... return entity.equals(that.entity) && path.equals(that.path); } ```