0 Replies Latest reply on May 7, 2008 3:11 AM by David Binder

    JPA/Hibernate MySQL type mapping

    David Binder Newbie


      I'm using Hibernate implementation of JPA annotation to map mysql tables. I encountered problems when it came to TEXT and BLOB types (and their TINY, MEDIUM, LONG counterparts) can anyone point me to a page explaining how to map these types using annotations.

      Considering BLOBs I found the solution : @Lob + @Column([whatever], length= X) where X is the corresponding length for the BLOB (LONG, MEDIUM, TINY) type.