-
Notifications
You must be signed in to change notification settings - Fork 63
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
@CurrentTimestamp #49
Comments
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@andyjefferson Commented |
|
These annotations should be applicable for fields of type java.sql.Timestamp, or java.time.Instant. |
New annotation "@CurrentTimestamp" should inject the current timestamp of a transaction into a data field.
The annotation will guarantee that at the transaction start the timestamp is produced once, so all uses of the annotation within the same transaction will guarantee to inject the same timestamp value.
This is another essential business need, as sometimes transactions run rather long, but all written data shall have synchronized timestamps.
The text was updated successfully, but these errors were encountered: