I'm using Hibernate. From the UI I'm getting the datetime as 2019-04-29 19:00:00. The same value will be stored in my Oracle database but it is being saved as 2019-04-29 07:00:00.
In Database camp_start_time Datatype is Timestamp
Adding code snippet:
{ "camp_id":292,"camp_name": "Tata","camp_desc":"Tata","camp_type": 1,"camp_start_time":"2019-04-29 19:00:00"} @Entity public class Campaign_Sms implements Serializable{ @Column(name = "CAMP_START_TIME") private Date camp_start_time; }