I am working on spring-boot application to retrieve data from MySQL server.
I have a table with a column corresponding to the created_at timestamp. The field value is stored as timestamp.
While retrieving I want to show the timestamp in a particular date format as well as the timestamp for two different calculations.
I am using Spring Boot - CrudRepository with the Hibernate @Entity
classes
public class Event {
@Column(name="created_at")
public String created_at;
@Column(name="created_at")
public String createdMonth; /***??? I want this
field to carry say date in month with three letters preceded by day
Eg: '22 May'. **/
}