随笔分类 -  hibernate

摘要:reference from:http://blog.csdn.net/zhutulang/article/details/26968159 mappingResources、mappingLocations、mappingDirectoryLocations、mappingJarLocations 阅读全文
posted @ 2016-06-03 15:09 Hutton‘ 阅读(389) 评论(0) 推荐(0)
摘要:1 、MySQL处理数据库中lob类型数据,如longblob类型;2、实体类定义: private byte[] clientFile;3、映射文件定义: 4、如果在spring上要使用Struts中自带的上传功能必须在spring的配置文件中加以声明.否者将会出现java.... 阅读全文
posted @ 2014-09-04 18:22 Hutton‘ 阅读(1309) 评论(0) 推荐(0)
摘要:MySQL数据库中的类型为longBlob实体类定义为:byte[] 类型映射文件配置为:type="org.springframework.orm.hibernate3.support.BlobByteArrayType异常信息:1 org.hibernate.MappingException: ... 阅读全文
posted @ 2014-08-23 14:32 Hutton‘ 阅读(1167) 评论(0) 推荐(0)
摘要:1、在工程上添加hibernate支持,导入相关包,修改配置文件为如下:hibernate.cfg.xml文件 com.mysql.jdbc.Driver jdbc:mysql://localhost... 阅读全文
posted @ 2014-06-28 15:20 Hutton‘ 阅读(442) 评论(0) 推荐(0)