Class BlobSerializableType

  • All Implemented Interfaces:
    UserType

    @Deprecated
    public class BlobSerializableType
    extends AbstractLobType
    Deprecated.
    as of Spring 4.3, in favor of Hibernate 4.x/5.x
    Hibernate UserType implementation for arbitrary objects that get serialized to BLOBs. Retrieves the LobHandler to use from LocalSessionFactoryBean at config time.

    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.

    Since:
    1.2
    Author:
    Juergen Hoeller
    See Also:
    LocalSessionFactoryBean.setLobHandler(org.springframework.jdbc.support.lob.LobHandler)