users@glassfish.java.net

Re: Controlling BLOB size for EJB persistence

From: <glassfish_at_javadesktop.org>
Date: Mon, 23 Apr 2007 11:35:51 PDT

Does the column definition tag work for you? Here is an example from the spec...

@Lob @Basic(fetch=LAZY)
@Column(name="EMP_PIC", columnDefinition="BLOB NOT NULL")
protected byte[] pic;

Does it work if you specify the size in the columnDefinition?
[Message sent by forum member 'tware' (tware)]

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