Customizing HATEOAS link generation for entities with composite ids

前端 未结 4 1749
北荒
北荒 2020-12-05 12:08

I have configured a RepositoryRestResource on a PageAndSortingRepository that accesses an Entity that includes a composite Id:

@Ent         


        
4条回答
  •  青春惊慌失措
    2020-12-05 12:39

    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.

提交回复
热议问题