Error when using Long Identity instead of UUID

Hi,

I have created an Entity with a Long Identity as Id instead of UUID. Now when I use a REST call to get all it returns an exception on server:

Caused by: org.eclipse.persistence.exceptions.ConversionException:
Exception Description: The object [1d47a7f3-5695-58db-64d1-039bc41defa2], of class [class java.lang.String], could not be converted to [class java.lang.Long].
Internal Exception: java.lang.NumberFormatException: For input string: "1d47a7f3-5695-58db-64d1-039bc41defa2"

Is there a way to use Long generated ids instead of using String UUIds?

Thanks,

James

Hi. Please provide a small demo project which includes an entity and http-request that demonstrate the case. You can create a project archive with the ‘zipProject’ gradle task.

I have created a new project from scratch and it has worked using Long Identity in the Entity

Thanks