It might be the database you're using that has that limit, and/or the
@Column annotation you have.

I'm just working on an entity right now that has a "memento" property, of
length 1024.  its annotation is:

    @javax.jdo.annotations.Column(allowsNull="false", length=1024)
    @MultiLine(numberOfLines=20)
    @Hidden(where=Where.ALL_TABLES)
    @MemberOrder(name="Target",sequence = "4")
    @Disabled
    public String getMemento() { ... }

This is fine on HSQLDB.

HTH
Dan





On 28 January 2014 03:52, Deepak Gopalakrishnan <[email protected]> wrote:

> Hello Dev,
>
> I've been trying an entity which has a property as below...
>
> private String response;
>
>
>     @javax.jdo.annotations.Column(allowsNull = "true", jdbcType = "text")
>
>     @MemberOrder(name = "Response", sequence = "11")
>
>     @MultiLine(numberOfLines = 10)
>
>     @TypicalLength(800)
>
>     public String getResponse() {
>
>         return response;
>
>     }
>
>
> My expected behaviour is a text area with any number of characters ( or a
> very high upper limit). I however get an error stating that the value
> character count exceeds 255 characters ( which is varchar count i believe)
>
>
> Please tell me what I'm missing here.
>
>
>
> --
> Regards,
> *Deepak Gopalakrishnan*
> *Mobile*:+918891509774
> *Skype* : deepakgk87
> http://myexps.blogspot.com
>

Reply via email to