Spring Data rest how to perform CRUD on @manytomany relation ,composite table with extra column

后端 未结 2 366
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-10 21:03

I am unable to perform CRUD via json POST from restful client Postman on Composite table having extra column .I am using Spring boot ,spring data rest and spring JPA. I hav

2条回答
  •  囚心锁ツ
    2020-12-10 21:27

    Apparently there seems to be no "natural/easy" way to get what you want. But there is a promissing project for integrating embeddables by extending the serialization process: https://github.com/gregturn/embeddable-spring-data-rest

    • UserCompetencyIdJacksonModule, UserCompetencyIdSerializer, ..

    Then you should be able PATCH (not POST) your JSON from above.

提交回复
热议问题