posted @ 2010-07-14 15:40 记录 阅读(4119) 评论(0) 推荐(0) 编辑
摘要:
1、菜单myeclipse---->subscription Information 2、window----preferences----myeclipse----subscription 3、有的版本是:myeclipse----subscription 阅读全文
摘要:
错误:org.springframework.beans.factory.BeanCreationException: Error creating bean with name '/company/list': Injection of resource fields failed; nested exception is org.springframework.beans.factory.No... 阅读全文
posted @ 2010-07-14 13:53 记录 阅读(2612) 评论(0) 推荐(0) 编辑
摘要:
错误: org.hibernate.exception.ConstraintViolationException: could not insert: [com.hqhop.hqhopsvc.tech.bean.client.Company] 解决: hibernate配置文件出错与数据库设置不符合。修改配置文件或者修改数据库主键等。 阅读全文
posted @ 2010-07-14 13:39 记录 阅读(2136) 评论(0) 推荐(0) 编辑
摘要:
错误: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'companyServiceBean': Injection of resource fields failed; nested exception is org.springframework.beans.fact... 阅读全文
posted @ 2010-07-14 13:33 记录 阅读(597) 评论(0) 推荐(0) 编辑
摘要:
错误: java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class com.microsoft.sqlserver.jdbc.SQLServerDriver) 解决: 今天在创建了一个工程,编译并部署到tomcat后,发现出现了java.lang.Unsupport... 阅读全文
posted @ 2010-07-14 13:28 记录 阅读(793) 评论(0) 推荐(0) 编辑
摘要:
1.确认验证模式 在 SQL Server Management Studio 中,对象资源管理器,主机名上点右键,主机属性,安全,确认"服务器身份验证"为"SQL和Windows身份验证模式"2.新建登录名 在主机名树下的安全性中,添加登录名,在登录名项上右键,新键登录名例:登录名:User01,模式为SQL验证,密码:User01去掉"强制实施密码策略"的复选,默认数据库指向你允许访问的数据库... 阅读全文
posted @ 2010-07-09 16:37 记录 阅读(575) 评论(0) 推荐(0) 编辑
摘要:
参考文档: http://www.blogjava.net/dreamstone/archive/2007/07/29/133071.html 阅读全文
posted @ 2010-07-09 13:21 记录 阅读(368) 评论(0) 推荐(0) 编辑
摘要:
merger()方法,很神奇。它可以用来将一个托管(detached)的VO(Value Object)持久化到数据库,以下是它持久化一个托管vo的步骤: 1.在持久化上下文(persist context)中查找与托管VO具有相同ID的PO(persist object),如果找到,就将托管的VO的值copy给PO,然后返回持久化以后的对象; 2.如果在持久化上下文中没有找到,它就会到数据库出找... 阅读全文
posted @ 2010-07-09 13:18 记录 阅读(3453) 评论(0) 推荐(0) 编辑
摘要:
网上有许多关于load和get方法的讨论,自己做了一个小小的实验,明确一下load和get方法的工作原理。首先get方法没有什么可说的,就是在Session执行此函数的时候hit一下数据库,而load方法比较麻烦,具体的执行流程是这样的: java 代码 Session session=getSessionFactory().openSession(); Transaction tr=sessi... 阅读全文
posted @ 2010-07-09 10:54 记录 阅读(457) 评论(0) 推荐(0) 编辑