Modify @OneToMany entity in Spring Data Rest without its repository
In my project I use object of type A which has OneToMany relation (orphanRemoval = true, cascade = CascadeType.ALL, fetch = FetchType.EAGER) to objects of type B . I need SpringDataRest (SDR) to store complete full A object with its B objects (children) using single one POST request. I tried several combinations in SDR, the only one which worked for me, was to create @RepositoryRestResource for object A and to create @RepositoryRestResource also for object B , but mark this ( B ) as exported=false (if I did not create repository out of object B at all, it would not work -> just A object would