类 BlobStringType

  • 所有已实现的接口:
    UserType

    @Deprecated
    public class BlobStringType
    extends AbstractLobType
    已过时。
    as of Spring 4.3, in favor of Hibernate 4.x/5.x
    Hibernate UserType implementation for Strings that get mapped to BLOBs. Retrieves the LobHandler to use from LocalSessionFactoryBean at config time.

    This is intended for the (arguably unnatural, but still common) case where character data is stored in a binary LOB. This requires encoding and decoding the characters within this UserType; see the javadoc of the getCharacterEncoding() method.

    Can also be defined in generic Hibernate mappings, as DefaultLobCreator will work with most JDBC-compliant database drivers. In this case, the field type does not have to be BLOB: For databases like MySQL and MS SQL Server, any large enough binary type will work.

    从以下版本开始:
    1.2.7
    作者:
    Juergen Hoeller
    另请参阅:
    getCharacterEncoding(), LocalSessionFactoryBean.setLobHandler(org.springframework.jdbc.support.lob.LobHandler)