- 博客(5)
- 资源 (3)
- 收藏
- 关注
原创 Myeclipse导入项目提示已存在(Some projects cannot be imported because they already exist in the workspace)
MyEclipse无法导入Java项目时常遇到的两种情况:1、Some projects cannot be imported because they already exist in the workspace2、Some projects were hidden because they exist in the workspace directory原因:workspace中已
2015-09-28 16:30:46
51403
5
转载 spring中的HibernateDaoSupport的用法(Session是如何获取的)
HibernateDaoSupport中自带了hibernate的模板供编程者使用。前提条件:你的类必须继承HibernateDaoSupport一:回调函数:public List getList(){ return (List )getHibernateTemplate().execute( new HibernateCallback() { p
2015-03-10 20:53:11
1543
原创 Struts2的action变量声明,首字母小写次字母大写的问题
Struts2,在前台可以取到action中的变量值,于是我们在action中必须有相应变量的getter和setter方法。 按照习惯,根据小驼峰格式变量的首字母小写,但当第二个字母为大写的时候,我们用eclipse自动自成的getter和setter中,首字母也是小写,但前台在取的时候,取的getter的首字母是大写的。 如,定义一个变量,
2015-03-10 15:04:50
2335
转载 hibernate.hbm2ddl.auto的update属性不能创建表的问题
使用Oracle数据库,用hibernate建表时,突然发现设置update属性时,不能建表了。当时怀疑可能性有:1、原先可以是在oracle9i,现在使用的是oracle10g,可能需要oracle10g的驱动;2、会不会是hibernate会判断这个类是什么时候写的,过了update的时间了。 对于第一种情况,我在oracle9i重新尝试了一下,同样不能建表了。说明不是oracle
2015-02-26 15:06:14
1781
4
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人