persistence@glassfish.java.net

Re: How to annotate TEXT field?

From: Wouter van Reeven <wouter_at_van.reeven.nl>
Date: Wed, 9 Dec 2009 16:11:55 +0100

You don't have to do anything for that. Unless your text String is too
long for the data type of the column to which you mapped your String
member. In that case you need another data type on the column, e.g.
clob.


HTH, Wouter

On Wed, Dec 09, 2009 at 07:04:49AM -0800, Franzisk wrote:
>
> How do I annotate an attribute in my entity which will have long text? (some
> text with several lines).
>
> I have this:
> @Column(name = "OBSERVATION")
> public String getObs() {
> return obs;
> }
>
> --
> View this message in context: http://old.nabble.com/How-to-annotate-TEXT-field--tp26711703p26711703.html
> Sent from the java.net - glassfish persistence mailing list archive at Nabble.com.

-- 
Freeze without an answer
Free from all the shame
Must I hide?
Cause I'll never
Never sleep alone
[Mars Volta - The Widow]
Skype: wvreeven
Facebook: wvreeven
Twitter: wvreeven