I have a column in DB with default value as sysdate. I\'m looking for a way to get that default value inserted while I\'m not giving anything to corresponding p
If you are using Hibernate then you can just use @CreationTimestamp to insert default date.
@CreationTimestamp
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "create_date")
private Date createDate;
and @UpdateTimestamp to update the value if necessary
@UpdateTimestamp
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "modify_date")
private Date modifyDate;