users@glassfish.java.net

Re: Controlling BLOB size for EJB persistence

From: <glassfish_at_javadesktop.org>
Date: Tue, 24 Apr 2007 03:05:34 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?

I did not specificly use the syntax you mention, I did try to control the size via:
@Column(name="MyName" columnDefinition="BLOB", length=256000)
which didn't have any effect.
[Message sent by forum member 'rjay' (rjay)]

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