users@glassfish.java.net

Re: Entity reference to another entity creates BLOB column in mysql table..why?

From: <glassfish_at_javadesktop.org>
Date: Mon, 13 Sep 2010 10:12:35 PDT

I'm glad you found the cause of the problem. Did you have @Basic on the same fields as @OneToMany or @ManyToOne? If yes, only one annotation is processed on each field, and if @Basic comes first, it denotes a BLOB for anything that is not a primitive, wrapper, or a String.
[Message sent by forum member 'mvatkina']

http://forums.java.net/jive/thread.jspa?messageID=482540