- 博客(5)
- 资源 (19)
- 收藏
- 关注
原创 使用ssh框架时出现 failed to lazily initialize 或者 no session 异常
Stacktracesorg.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.eduask.beans
2012-06-26 15:48:36 5061 1
原创 java的set集合简单排序
在使用ssh框架的时候,bean层反倒出来的一对多,一的那段存的是多的一端的set集合。set是无序的,所以我们要使用TreeSet进行排序,使用步骤大概是: 首先,在我们的bean实现Comparable接口的compareTo()方法; 其次,在使用Set集合的时候不在使用new HashSet()了,而是使用new TreeSet(); 只
2012-06-22 18:45:39 46013 2
原创 getHibernateTemplate().findByCriteria()使用
getHibernateTemplate().findByCriteria()使用用了这么多次getHibernateTemplate().findByCriteria(),现在才发现它很好用,可以解决很多查询问题。 getHibernateTemplate().findByCriteria(criteria)可以查询不需要分页的数据,getHibernateTemplate().f
2012-06-21 15:10:16 30802 6
转载 HibernateTemplate源码
/* * Copyright 2002-2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
2012-06-19 18:09:10 6350
转载 getHibernateTemplate与getSession
1.使用getSession()方法你只要继承sessionFactory,而使用getHibernateTemplate()方法必须继承 HibernateDaoSupport当然包括sessionFactory2.getSession()方法是没有经过spring包装的,spring会把最原始的session给你,在使用完之后必须自己调用相应的 close方法,而且也不会对声明
2012-06-19 15:25:33 694
jdgui1.6.5.zip
2020-07-09
Android Studio中文汉化jar(resources_cn.jar)
2019-03-21
cdr9在win10系统完美解决保存、输出、另存选项遮盖问题drawintl.dll
2019-03-06
jackson-2.9.3的jar包和源码
2018-05-14
ooxml-schemas
2015-02-05
重构_改善既有代码的设计 熊杰译
2014-07-30
jBPM4工作流应用开发指南.pdf
2013-08-27
swf+j2ee上传文件
2012-11-01
xwork2.1.6加上了TextUtils.class
2012-04-28
JavaScript中文 5.CHM
2009-08-17
CSS中文手册.chm
2009-08-17
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人