resolved workflow issues
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package zw.qantra.tm.domain.models;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.GeneratedValue;
|
||||
import jakarta.persistence.Id;
|
||||
@@ -31,10 +32,12 @@ public class BaseEntity {
|
||||
|
||||
@CreationTimestamp
|
||||
@Column(name = "created_at", nullable = true, updatable = false)
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS")
|
||||
private LocalDateTime createdAt; // Or Date, Timestamp
|
||||
|
||||
@UpdateTimestamp
|
||||
@Column(name = "updated_at", nullable = true)
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS")
|
||||
private LocalDateTime updatedAt; // Or Date, Timestamp
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user