bad value for type long exception for Lob fields in Hibernate

If you are getting ‘bad value for type long’ exception in hibernate with Lob fields, add

@Type(type = "org.hibernate.type.TextType")

to @Lob fields.