Closed ajheflin closed 2 years ago
Two questions:
I cloned the latest. My pom.xml says 1.0.6.
I ended up resolving it by creating a custom implementation of the CUDRequestHandler, but originally I was using the default one, yes. I'm mostly just curious if the error originally was something on my end or an issue with the framework. I had also tried creating an IDClass that implemented Serializable but no dice there, either.
The idea of JPAExampleCUDRequestHandler
is to support you in rapid prototyping, it may not be able to handle all situations. As the ìmplementation of JPACUDRequestHandler
is the place to implement business logic the JPA Processor can only provide some supporting functions.
Attached is a screenshot of the request being made to the endpoint:
And the error being returned is
Cannot insert the value NULL into column 'issue_id', table 'db.logs'; column does not allow nulls. INSERT fails
The database name has been obscured for privacy reasons but the database is MS SQL.
The entity class for Log is as follows:
It's worth noting that created, createdBy, modified, and modifiedBy are all values that are calculated as the object is being persisted, and do not need to be posted with the request body.