Closed jgrim closed 1 month ago
@Pdzly I've thought more about this issue. I think we should remove the db triggers and let springboot manage updatedAt for the entities. Rather than removing the annotation I believe we should make the field mutable and allow springboot to handle it. I'd consider updating the annotations for update and create to be driven by the database timestamp like so:
@UpdateTimestamp(source = SourceType.DB)
& @CreationTimestamp(source = SourceType.DB)
@Pdzly I've thought more about this issue. I think we should remove the db triggers and let springboot manage updatedAt for the entities. Rather than removing the annotation I believe we should make the field mutable and allow springboot to handle it. I'd consider updating the annotations for update and create to be driven by the database timestamp like so:
@UpdateTimestamp(source = SourceType.DB)
&@CreationTimestamp(source = SourceType.DB)
Ok
Fixed it
Resolves #373