I am developing a document management application in spring
using jpa
and MySQL
. The application is currently accepting a document an
I'm not a Hibernate-with-annotations expert (I've been using it since 2004, but with XML config). Anyway, I'm thinking that you're mixing annotations incorrectly. You've indicated that you don't want the file
field persisted with @Transient
, but you've also said it's a @Lob
, which implies you do want it persisted. Looks like @Lob
is winning, and Hibernate is trying to resolve the field to a column by using the field name.
Take off the @Lob and I think you'll be set.