[JIRA] (HHH-15774) make @CurrentTimestamp take over the job of @Source, and make value generation work better with version properties
by Gavin King (JIRA)
Gavin King ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%... ) *created* an issue
Hibernate ORM ( https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiMGI0Nzk4M2Y3... ) / Improvement ( https://hibernate.atlassian.net/browse/HHH-15774?atlOrigin=eyJpIjoiMGI0Nz... ) HHH-15774 ( https://hibernate.atlassian.net/browse/HHH-15774?atlOrigin=eyJpIjoiMGI0Nz... ) make @CurrentTimestamp take over the job of @Source, and make value generation work better with version properties ( https://hibernate.atlassian.net/browse/HHH-15774?atlOrigin=eyJpIjoiMGI0Nz... )
Issue Type: Improvement Assignee: Unassigned Components: hibernate-core Created: 28/Nov/2022 04:22 AM Priority: Major Reporter: Gavin King ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%... )
Currently, all the timestamp generation stuff shows all the signs of evolution over time. We really don’t need @Source , @CurrentTimestamp , @UpdateTimestamp , and @CreationTimestamp , we only have so many different annotations because different people were worried about different specific problems at different times.
It’s well past time for a cleanup. I would be perfectly happy to deprecate three of these annotations and leave only @CurrentTimestamp standing, but @UpdateTimestamp and @CreationTimestamp survive because they can be viewed as abbreviations.
To make all this work, I needed to make all three of them allow an explicit SourceType , and I needed to fix up the handling of value generation with version properties, which wasn’t quite working perfectly, because the main point of this is to let you write @Version @CurrentTimestamp instead of @Version @Source(DB).
( https://hibernate.atlassian.net/browse/HHH-15774#add-comment?atlOrigin=ey... ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-15774#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=EmailN... ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100210- sha1:4037f92 )
1 year, 5 months