Skip to content
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

Ensure that the Temporal annotation is specified for all persistent fields of type java.util.Date of all entity classes #4278

Closed
gunterze opened this issue Nov 13, 2023 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@gunterze
Copy link
Member

Ensure that the @Temporal annotation is specified for all persistent fields of type java.util.Date of all entity classes, as required by Java Persistence 2.2,

11.1.53 Temporal Annotation

The Temporal annotation must be specified for persistent fields or properties of type java.util.Date and java.util.Calendar unless a converter is being applied. It may only be specified for fields or properties of these types.

It seems, that Hibernate assumes @Temporal(@Temporal(DATE)) for persistent fields of type java.util.Date without @Temporal annotation, so the missing of the required annotations did not cause failures to deploy or on accessing the field so far.

@gunterze gunterze added the bug Something isn't working label Nov 13, 2023
@gunterze gunterze added this to the 5.31.2 milestone Nov 13, 2023
@gunterze gunterze self-assigned this Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant