摘要: hql语句 String hql = "from Song where name like '%"+text+"%' or singer like '%"+text+"%' or alumn like '%"+text+"%' ";去重。重写pojo类的equals 和hascode。 @Overr... 阅读全文
posted @ 2016-01-17 21:57 Lemniscate317 阅读(507) 评论(0) 推荐(0) 编辑
摘要: jsonlib的一些用法1. List集合转换成json代码List list = new ArrayList();list.add( "first" );list.add( "second" );JSONArray jsonArray2 = JSONArray.fromObject( list )... 阅读全文
posted @ 2016-01-17 17:31 Lemniscate317 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 原因:json在使用的时候,不仅要有json开头的这一个包,其他包全都要加入,一共:commons-beanutils.jarcommons-collections.jarcommons-lang.jarcommons-logging.jarezmorph-1.0.6.jarjson-lib-2.2... 阅读全文
posted @ 2016-01-17 17:25 Lemniscate317 阅读(234) 评论(0) 推荐(0) 编辑