I've got an abstract BasicEntity class implementing Persistable. It's purpose to set basic fields :
@CreatedDate
@Column(value = "create_time")
private Long createTime;
@CreatedBy
@Column(value = "create_user")
private String createUser;
@LastModifiedDate
@Column(value = "last_modify_time")
private Long lastModifyTime;
@LastModifiedBy
@Column(value = "last_modify_user")
private String lastModifyUser;
It sets
spring.application.name: my_app
to the field lastModifyUser and it makes a timestamp for the lastModifyTime, but createTime and createUser are nulls after saving entity. Any advice ?