Vlad Mihalcea (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNWY4OGY0NzIx...
) / Improvement (
https://hibernate.atlassian.net/browse/HHH-13991?atlOrigin=eyJpIjoiNWY4OG...
) HHH-13991 (
https://hibernate.atlassian.net/browse/HHH-13991?atlOrigin=eyJpIjoiNWY4OG...
) Make the TimstampType return the actual mapped Type (e.g., java.util.Date or
java.sql.Timestamp) instead of always returning java.sql.Timestamp (
https://hibernate.atlassian.net/browse/HHH-13991?atlOrigin=eyJpIjoiNWY4OG...
)
Issue Type: Improvement Affects Versions: 5.4.14 Assignee: Vlad Mihalcea (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) Components: hibernate-core Created: 30/Apr/2020 01:01 AM Priority: Major Reporter: Vlad
Mihalcea (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
Currently, when using the following mapping:
@Column(name = "published_on" )
@Temporal(TemporalType.TIMESTAMP)
private java.util.Date publishedOn;
When fetching the entity back, the `publishedOn` will be populated as a
`java.sql.Timestamp` which can break equal checks.
(
https://hibernate.atlassian.net/browse/HHH-13991#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-13991#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100125- sha1:c543463 )