Category "spring-data-jpa"

JPA Repository.findById() returns null but the value is exist on db

I'm developing Spring boot project, using JPA. What I wanna know is repository.findById(id) method returns null, whereas data is available in the DB. Functions

How to set default current date in jpa for mysql

I am trying to generate current date automatically but getting this error You have an error in your SQL syntax; check the manual that corresponds to your MySQL

Postman returns null when using POST (Spring Boot)

** Update Updated the input in Postman: { "firstName": "Thierry", "lastName": "Blossom", "dateOfBirth": "1981-01-20", "email": "thierry@gmai

Composite Primary Key using MongoDB and Spring Data JPA

Could someone tell how to create a composite key in Spring Data JPA using Mongo DB