[appengine-java] Re: String as Primary key in JDO

2010-01-17 Thread Sahil Mahajan
Thanks Chau Huynh

Regards
Sahil

On Jan 17, 12:32 pm, Chau Huynh cmhu...@gmail.com wrote:
 Queries must go with indexes 
 (http://code.google.com/appengine/docs/java/datastore/queriesandindexe...)
 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 sahilm2...@gmail.com 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 jdpatter...@gmail.com wrote:
   Just String#toLowerCase() the key when you store them

   On Jan 17, 1:11 am, sahil mahajan sahilm2...@gmail.com 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
  google-appengine-j...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
  .
  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 google-appengine-j...@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.




[appengine-java] Re: String as Primary key in JDO

2010-01-16 Thread jd
Just String#toLowerCase() the key when you store them

On Jan 17, 1:11 am, sahil mahajan sahilm2...@gmail.com 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 google-appengine-j...@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.




[appengine-java] Re: String as Primary key in JDO

2010-01-16 Thread Sahil Mahajan
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 jdpatter...@gmail.com wrote:
 Just String#toLowerCase() the key when you store them

 On Jan 17, 1:11 am, sahil mahajan sahilm2...@gmail.com 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 google-appengine-j...@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.




Re: [appengine-java] Re: String as Primary key in JDO

2010-01-16 Thread Chau Huynh
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 sahilm2...@gmail.com 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 jdpatter...@gmail.com wrote:
  Just String#toLowerCase() the key when you store them
 
  On Jan 17, 1:11 am, sahil mahajan sahilm2...@gmail.com 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
 google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 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 google-appengine-j...@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.