-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UUIDs fail with EclipseLink and Postgres #2190
Comments
There is some discussion on how to convert to a UUID in postgres here: There is a recreate here: https://github.com/mswatosh/persistence-recreates/blob/1a2658d4e90ce56807bf7ecbc65455d1b8600f17/src/main/java/com/example/application/PersistenceService.java#L119 |
Sorry, but I don see any bug there against PostgreSQL see attached testcase.
|
@rfelcman It looks like it only occurs if the id is Generated, in your test case you're specifying it. I modified your test case to generate the Id and it fails like in my recreate. I added table creation, and changed the user/pass to what I use with the postgres docker container, so that will need to be updated in the persistence.xml and |
I see some logical errors related with
Without this |
I think I've narrowed down the issue. When I use this in my persistence.xml:
It's creating the table as:
Where your working example was creating the table directly as this:
So it seems like the schema generation is not creating the table correctly? |
When creating a query with a UUID, the parameter is set as a VARCHAR instead of a UUID, and is rejected by Postgres.
Here is an example of the failing query:
The text was updated successfully, but these errors were encountered: