Hello,

You have to use it in a Key object or use it as key (may not be
possible so directly because of entity groups)

I would recommend including in Key object: see
http://code.google.com/appengine/docs/java/datastore/dataclasses.html#Class_and_Field_Annotations

didier

On Jul 1, 4:17 pm, nevzat <u...@myjavasolutions.com> wrote:
> I am trying to make one of my field unique, but cannot do it. I used
> annotations which did not work. Then I try to do it in jdo xsd file
> and that did not work either. Can you please help me out?
>
> here is an example:
> public class AccountInfo {
>
> @Persistent
> private String userName;
>
> }
>
> I want to make userName unique.
>
> Thanks in advance for your time.

-- 
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.

Reply via email to