HQL query using a date column
问题 I am trying to create a query that will return a List of Person objects based on if the createDate field falls after a passed string that represents a date. My createDate fields is mapped like this in my Person class @Basic(optional = false) @Column(name = "CREATE_DATE") @Temporal(TemporalType.DATE) private Date createDate; My function to find all person results after a date looks like this. public List<Person> searchDate(String startDate) { Session session = getSessionFactory().openSession()