Queries must go with indexes (
http://code.google.com/appengine/docs/java/datastore/queriesandindexes.html)
For the column, you can store it as lowercase/uppercase,
For the display column, you can store the original value.

On Sun, Jan 17, 2010 at 2:15 PM, Sahil Mahajan <[email protected]> wrote:

> Isn't there any other way.
> I want to avoid toLowerCase().
> I want String to be case insensitive for database, but while
> displaying String to user I would like it to conserve case..
> I can compare strings through equalsIgnoreCase. But then I won't be
> able to make effective use of primary key.
>
>
>
>
> On Jan 17, 11:34 am, jd <[email protected]> wrote:
> > Just String#toLowerCase() the key when you store them
> >
> > On Jan 17, 1:11 am, sahil mahajan <[email protected]> wrote:
> >
> > > I am using String as primary key in JDO. But it is case sensitive. It
> > > considers "name" and "NAME" as different. Can I make it case sensitive?
> >
> > > --
> > > Regards
> > > Sahil Mahajan
>
> --
> 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
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-appengine-java%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>
>
>
--
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 [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to