[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - JPA/Hibernate MySQL type mapping

dbinder do-not-reply at jboss.com
Wed May 7 03:11:46 EDT 2008


Hi,

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.

Dav'

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149001#4149001

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149001



More information about the jboss-user mailing list