hibernate时间比较

来源:互联网 发布:淘宝如何查找附近的人 编辑:程序博客网 时间:2024/06/05 06:58
sql和hql时间比较(mysql数据库)date_format(expect_start_time,'%Y-%m-%d') = '2017-10-23'Criteria时间比较SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");c.add(Restrictions.eq("planDate",sdf.parse((expect_start_time)));

原创粉丝点击