spring-projects/spring-data-jpa — pull request #95 by thomasdarimont (2014-06-02 11:41:12+00:00)
Title: DATAJPA-527 - Improved handling of CrudRepository.exists(ID) entities with complex composite id.

We now delegate the exists(..) check to findOne(..) in SimpleJpaRepository for entities that have a complex composite id via @IdClass. Previously we tried to generate a string based count query in that case, which didn't work since the parameter types for the IdClass attributes didn't match the values returned by entityInformation.getCompositeIdAttributeValue(..).