org.hibernate.QueryException: insertion type (String) and selection type (Date) not compatible INSERT INTO Sample(name,code,date) select :name,:code,20-MAR-45 from sample.