i need all records which have year entered from search criteria. for ex: String year = "2012";
In hibernate it work for
criteria.add(Restrictions.like("createDate", "%"+year+"%"));
createDate is in format DD-MM-YY.
Please suggest..
See Question&Answers more detail:os