SaiUpadhyayula / spring-reddit-clone

Reddit clone built using Spring Boot, Spring Security with JWT Authentication, Spring Data JPA with MySQL, Spring MVC. The frontend is built using Angular - You can find the frontend source code here - https://github.com/SaiUpadhyayula/angular-reddit-clone
658 stars 386 forks source link

Mapping user comment #3

Closed 0x14Rp closed 4 years ago

0x14Rp commented 4 years ago

In the comment mapping add the user because the user id I was commenting on was not storing in the database

in my case just add @Mapping(target = "user", source = "user")

SaiUpadhyayula commented 4 years ago

Hi,

Thank you for pointing out, I managed multiple versions of the source code while developing the tutorials, and I just realized, the repository is not up to date.

I updated the source code now