0

I am trying to map mediumblob in MYSQL with type='mediumblob' in Hibernate property file but I am getting the below exception.

Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not determine type for: BLOB, for columns: [org.hibernate.mapping.Column(INDEX_ZIP)]

This is the property I am setting.

<property name="indexZipBlob" type="BLOB">
    <column name="INDEX_ZIP" /> 
</property>

1 Answer 1

1

Try using

<property name="indexZipBlob" not-null="true">
  <column name="INDEX_ZIP" sql-type="MEDIUMBLOB" />
</property>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.