I have configured a RepositoryRestResource on a PageAndSortingRepository that accesses an Entity that includes a composite Id:
@Ent
I had a similar problem where the composite key scenarios for data rest was not working. @ksokol detailed explanation provided the necessary inputs to solve the issue. changed my pom primarily for data-rest-webmvc and data-jpa as
org.springframework.data
spring-data-rest-webmvc
2.2.1.RELEASE
org.springframework.data
spring-data-jpa
1.7.1.RELEASE
which solved all the issues related to composite key and I need not do the customization. Thanks ksokol for the detailed explanation.