Is it possible combine persistence @Version + Timestamp + precision?
Expected result datetime with milliseconds 2019-07-16 14:05:40.648419.
Now I get 2019-07-16 14:05:18.000000.
@MappedSuperclass
@Getter
@Setter
public abstract class AbstractEntity<T> {
@Version
@Column(name = "UPDATED", nullable = false)
private Timestamp updated;
}
@Version Timestamp is set by this functionality:
getTimestampFromServer use -> MySQLPlatform.getTimestampQuery() //default behaviour SELECT NOW();
Property use-local time in persistence.xml not help, milliseconds still .000