Class JsonClobType

All Implemented Interfaces:
org.hibernate.metamodel.mapping.BasicValuedMapping, org.hibernate.metamodel.mapping.Bindable, org.hibernate.metamodel.mapping.JdbcMappingContainer, org.hibernate.metamodel.mapping.MappingModelExpressible, org.hibernate.metamodel.mapping.SqlExpressible, org.hibernate.metamodel.mapping.ValueMapping, org.hibernate.query.BindableType<Object>, org.hibernate.query.sqm.SqmExpressible<Object>, org.hibernate.type.descriptor.java.JavaTypedExpressible, org.hibernate.usertype.DynamicParameterizedType, org.hibernate.usertype.ParameterizedType, org.hibernate.usertype.UserType<Object>

Maps any given Java object on a JSON column type that is managed via PreparedStatement.setClob(int, Clob) at JDBC Driver level.

If you are using Oracle, you can use this JsonClobType to map a CLOB column type storing JSON.

For more details about how to use it, check out this article on vladmihalcea.com.

If you want to use a more portable Hibernate Type that can work on Oracle, SQL Server, PostgreSQL, MySQL, or H2 without any configuration changes, then you should use the JsonType instead.

Author:
Vlad Mihalcea, Andreas Gebhardt
  • Field Details

  • Constructor Details

    • JsonClobType

      public JsonClobType()
    • JsonClobType

      public JsonClobType(Type javaType)
    • JsonClobType

      public JsonClobType(JsonConfiguration configuration)
    • JsonClobType

      public JsonClobType(org.hibernate.type.spi.TypeBootstrapContext typeBootstrapContext)
    • JsonClobType

      public JsonClobType(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
    • JsonClobType

      public JsonClobType(ObjectMapperWrapper objectMapperWrapper)
    • JsonClobType

      public JsonClobType(com.fasterxml.jackson.databind.ObjectMapper objectMapper, Type javaType)
    • JsonClobType

      public JsonClobType(ObjectMapperWrapper objectMapperWrapper, Type javaType)
  • Method Details

    • getName

      public String getName()