maxlength in HTML is a good approach but the client code could
manipulated meaning ur application is open to inconsistent data
moreover if your application is serving more than the client HTML it's
a havoc.
For a example in your app if ur planing to tweet with some additional
prefix based on stored events other than html form submission,(As you
know tweet limit is 140 chars). so other than checking length
@prepersist is there any workarounds for this?
On Thu, Jan 13, 2011 at 11:26 AM, Kumar, Susheel
susheel.ku...@ap.sony.com wrote:
Well, as I coudnt find a way what I did is I checked the size in the client
side itself. Like I set maxlength value to the HTML input tags so that it
will be prevent it right from there.
Thanks Regards,
Susheel Kumar
susheel.ku...@ap.sony.com | +91 9886275353 | 080-67078924 | SARD-SEZ,
SISC | BANGALORE, INDIA |
From: Charms Styler [mailto:charmssty...@gmail.com]
Sent: Thursday, January 13, 2011 11:04 AM
To: google-appengine-java@googlegroups.com
Cc: Kumar, Susheel
Subject: Re: Regarding @Column annotation
true.. @Column length or @size doesn't seems to work. is there a
workaround for this??
hmm only explanation found was about the overall limit of 500 chars on
String according to
Porperties
Values http://code.google.com/appengine/docs/java/datastore/entities.html
This email is confidential and intended only for the use of the individual
or entity named above and may contain information that is privileged. If you
are not the intended recipient, you are notified that any dissemination,
distribution or copying of this email is strictly prohibited. If you have
received this email in error, please notify us immediately by return email
or telephone and destroy the original message. - This mail is sent via Sony
Asia Pacific Mail Gateway..
--
You received this message because you are subscribed to the Google Groups
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.