It's easy to convert a java.util.Date object to java.sql.Timestamp in Java, all you need to do is call the getTime() method to get the long value from java.util.Date object and pass it to java.sql.Timestamp constructor, as shown below:
public Timestamp getTimestamp(java.util.Date date){
return date == null ? null : new java.sql.Timestamp(date.getTime());
}