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.
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.