javax.persistence.EntityNotFoundException: Unable to find kg.library.spring.library_spring.entity.Author with id 10000001

I’m new to Spring and I’m probably making the dumbest mistake, but I can’t solve this problem for more than 2 hours. According to the video tutorial, I did Pagination, I did it exactly like his, but he did not have relationships between entities. I think the error is in a one-to-one relationship between Author… Read More javax.persistence.EntityNotFoundException: Unable to find kg.library.spring.library_spring.entity.Author with id 10000001

How to map from Page<ObjectOne> to Page<ObjectTwo> in Spring Data 2?

I’m looking at some old code and I’m trying to re-write it however I encountered a problem. This is the old code that works perfectly fine: public Page<SearchResult> search(String text, int pageNumber) { PageRequest request = PageRequest.of(pageNumber-1, itemsPerPage); Page<Profile> results = profileDao.findByInterestsNameContainingIgnoreCase(text, request); Converter<Profile, SearchResult> converter = new Converter<Profile, SearchResult>() { @Override public SearchResult convert(Profile… Read More How to map from Page<ObjectOne> to Page<ObjectTwo> in Spring Data 2?