I am working on a project that does not allow for Hibernate due to the license. We are working with spring-boot-starter-parent 1.5.10.RELEASE, Spring Data JPA, and Spring Data REST with HATEOAS. Specifically, the following:
- spring-data-jpa:1.11.10.RELEASE
- spring-data-rest-core:2.6.10.RELEASE
- spring-data-rest-webmvc:2.6.10.RELEASE
- spring-hateoas:0.23.0.RELEASE
- openjpa-all:2.4.2
- h2:1.4.194 (for dev and automated testing)
- postgresql:42.1.4 (for production)
We have excluded the hibernate dependencies.
The following behavior is observed on PATCH and DELETE:
PATCH
ERROR o.s.d.r.w.RepositoryRestExceptionHandler - Cannot cast org.apache.openjpa.util.StringId to java.lang.String
DELETE
ERROR! org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [org.apache.openjpa.util.StringId] to type [java.lang.String]
Does anyone know how to make the Spring/OpenJpa combination happy?
We have an integration requirement that forces us to use String as the Correlation id. We are hoping to leverage the out of the box features with paging, sorting, etc. A basic entity field definition looks like this:
@Id
@Expose
@Column(name = "operator_id")
private String id;
GET and POST behavior are working fine.
Any assistance is much appreciated!