Overview: The application deals with basic CRUD functionality for User information.
Issue:
While reading user details from the pre-populated H2 database, I am facing issues while using BeanPropertyRowMapper.
The mapper is not able to initialize the User instance as it is not able to use the default constructer of the data class.
Data Class:
Repository:
Error:
Caused by: java.lang.IllegalArgumentException: No argument provided for a required parameter: parameter #0 id of fun <init>(kotlin.String, kotlin.String, kotlin.String, kotlin.String, java.util.Date): org.chrysalis.userservice.model.User
Providing a specific rowmapper solves the issue, but I am confused why BeanPropertyRowMapper is not able to create the response.
I am also wondering if this issue is just specific to the Java reflection and if this would be the same for other mapping utilities in spring.

