I have the following class:
@Data
@Builder
public class SampleClass<String, String> {
@NonNull
String key;
@NonNull
String value;
}
Is there any way to add a timestamp for when the class is initialized and when the value is changed/edited/updated?
I have attempted adding:
@Temporal(TemporalType.TIMESTAMP)
private TimeStamp editedAt;
But does not seem to be what I am looking for.