ManyToOne referenced entities not exist in JSON Response when returning PagedResource
Clash Royale CLAN TAG #URR8PPP ManyToOne referenced entities not exist in JSON Response when returning PagedResource When I return a Page<Entity> from a method inside my @RestController class, all fields of Entity both referenced via @OneToXXX and @ManyToXXX take place in the returned JSON object. But when I switched the return type to PagedResource (to be able to add links to the response), @ManyToXXX fields are not included at all. Page<Entity> @RestController Entity @OneToXXX @ManyToXXX PagedResource @ManyToXXX Here is the method in question: @GetMapping("/fetch") public PagedResources getResults(Pageable pageable, PagedResourcesAssembler assembler) { Page<ParentClass> page = myRepository.findAll(pageable); PagedResources pagedResources = assembler.toResource(page, myResourceAssembler); return pagedResources; } Here are the basic class definitions: ParentClass @Entity @Table(name = "parent_table", catalog = "...