IBatis and Spring when the Blob with garbage treatment

2010-10-21  来源:本站原创  分类:Java  人气:194 

Spring said the Internet and in accordance with the time to use the following IBatis configuration Blob data conversion process:

<result property="content" column="cnt" typeHandler ="org.springframework.orm.ibatis.support.BlobByteArrayTypeHandler"/>



But taken out of this data is garbled, and later found a IBatis Handler their implementation can finally solve the garbage problem. Specifically as follows:
<Result
property = "content" column = "cnt" typeHandler = "com.ibatis.sqlmap.engine.type.BlobTypeHandlerCallback" />

Instead of using com.ibatis.sqlmap.engine.type.BlobTypeHandlerCallback org.springframework.orm.ibatis.support.BlobByteArrayTypeHandler on it. I do not know what Spring is engaged.

Added:
If you are using the drive Oracle9 string as long as more than 4000 characters can not be inserted. Use 10g of the drive, can write to 32766 characters. The main reason is the jdbc driver limits the reasons for the length of String.

相关文章
  • IBatis and Spring when the Blob with garbage treatment 2010-10-21

    Spring said the Internet and in accordance with the time to use the following IBatis configuration Blob data conversion process: <result property="content" column="cnt" typeHandler ="org.springframework.orm.ibatis.support.BlobB

  • iBATIS and Spring of the ensemble (b) - Flex front-end minor 2010-12-11

    the progress of iBatis and Spring is still like yesterday. Back to the community of the time, and today is the Flex time. Previously done with Java + Flex LCDS's dataservice components for general use, in fact, lazy. Because of the recent study for t

  • URL to pass the Chinese garbage treatment issue 2010-04-08

    URL to pass the Chinese garbage treatment issue At 10:12 on May 27, 2009 Method 1: In the background to get some string iso-8859-1 encoding the form of an array, and then use this array of instances of a UTF-8 encoded form of String type String. Url

  • ibatis in spring and hibernate under the Integrated 2009-05-29

    In the actual project development, if only hibernate, often encounter a lot of the complexity of implementation of the sql and map methods, this time is very easy if ibatis, so we need to hibernate in a project and co-exist ibatis configuration is as

  • iBATIS and Spring Integration 2010-03-29

    JavaBean constructed as follows (get, set methods omitted): public class Student { private Integer stu_id; private String stu_name; private Integer stu_age; private float stu_score; private Date stu_birth; } In the JavaBean to create a new bag Studen

  • the usage of iBatis with Spring 2008-09-28

    The following are some examples cited by the whole process, which part may need to paste out of use: sqlMapConfig.xml <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE sqlMapConfig PUBLIC "-//ibatis.apache.org//DTD SQL Ma

  • iBATIS and Spring integration and environmental structures 2010-04-13

    Environmental structures dependencies: Spring 2.5.6 dependencies: spring.jar aspectjrt.jar aspectjweaver.jar commons-dbcp.jar commons-pool.jar commons-beanutils.jar iBATIS dependencies: ibatis-2.3.0.677.jar mysql-connector-java-3.1.13-bin.jar The spr

  • iBATIS and Spring of the ensemble (c) - Services, Dynamic SQL 2010-12-12

    I've just watched a horror film, finally a little inspiration, continue to sum up the East Spring and iBATIS. Originally wanted to sort out the next day when reading the summary iBATIS source classic design patterns. But now relatively messy thoughts

  • IBatis Mapper&Spring Data JPA实现原理 2013-04-28

    因为我们最近的一个项目数据库访问呢层使用Ibatis, 今天团队成员问Ibatis中只写接口,不写实现,Ibatis是如何帮助我们查询数据.其实原理很简单,就是Java的反射和代理,因为Java的代理是真对于接口的.所以我们就可以在开发中DAO模块就直接写接口和对用的SQL就可以.实现类由我们生成代理,当代理方法被调用的时候我们就使用通用的数据库访问方法去接管它,为清晰简单的说明原理,这里直接给代码. public class User { private long id; private St

  • Hibernate Spring on Oracle Blob data processing 2009-10-14

    oracle data type of the blob, hihbernate mapping in the use of spring-assisted type: <property name="filedata" type="org.springframework.orm.hibernate3.support.BlobByteArrayType"> <column name="filedata" /> </p

  • jpgraph Chinese garbage treatment 2010-12-09

    The garbage processing of jpgraph, first title garbled: $graph->title->Set($title); // Setting title $graph->title->SetFont(FF_SIMSUN,FS_BOLD); // Set Chinese And then modify: jpgraph_ttf.inc.php in the 178 line elseif( $aFF === FF_SIMSUN ) {

  • jQuery Study Notes - Chinese garbage treatment 2010-07-23

    Solution Summary: Method 1, modify the jQuery source code Changes in the 1.3.2 version of the first 3737 line: s[ s.length ] = encodeURIComponent(key) + '=' + encodeURIComponent(value); Modified: s[ s.length ] = encodeURIComponent(key) + '=' + encode

  • jsp servlet to pass parameters to the two situations and the Chinese garbage treatment 2010-11-20

    The first method is to pass parameters through the get method: parameter.jsp code: <%@ page language="java" import="java.util.*" pageEncoding="GBK"%> <html> <head> <title> This is my first JSP page <

  • MySQL access BLOB garbage 2010-04-22

    Encountered a problem today when accessing blob, Chinese garbage problem Finally, find a solution if the time access to large text blob instead of using mediumtext When the field is changed after the type of Not garbled the blob type is used to store

  • Spring integration with ibatis 2010-07-16

    Spring and ibatis we need to know are non-invasive and low-coupling framework, so we can develop individual, that is, integration is no longer needed can be developed. If we are to use ibatis Zhong Spring's IOC container management services To inject

  • The following spring iBATIS transaction management - using AOP XML configuration management [transfer] 2010-12-21

    Spring under the management of things in three ways: programmatic transaction management, declarative transaction management and AOP transaction management. Management which is divided AOP AOP annotations and AOP XML configuration transaction managem

  • 通向架构师的道路(第二十天)万能框架spring(二)maven结合spring与ibatis 2015-01-15

    一.前言 上次讲了Struts结合Spring并使用Spring的JdbcTemplate来搭建工程框架后我们面临着jar库无法管理,工程发布不方便,jar包在工程内太占空间,jar包冲突,管理,甚至漏包都问题.于是我们在讲"万能框架spring(二)"前,传授了一篇番外篇,即讲利用maven来管理我们的jar库. 从今天开始我们将结合"万能框架spring(一)"与番外篇maven来更进一步丰富我们的ssx框架,那么今天讲的是使用iBatis3结合SS来构建我们的

  • IBatis frame some of the problems of the extension (e) 2010-10-07

    Ibatis treatment for specific data types, implementation must inherit TypeHandler class interface, in general, the project SqlMapConfig in the configuration. For special data types in the database does not support the case for callback processing. La

  • learning java Spring Records 2009-08-12

    Recently, there have been in learning spring, the spring that is too powerful features, and now summarized by the following school today, I feel a little less learned, not Have learned how to spring, it is estimated to redouble their efforts would al

  • Improvement on the IBatis page to ibatis hibernate type of physical support page - is reproduced 2010-04-01

    Keywords: ibatis spring physical paging paging Most of our projects have started using IBatis as O / R Mapping, but also in the process of discovery using a lot of inconvenience and controversial area, which is a convenient place to paging, the prese