I'have tried to make a field of a class "unique" using different
combinations of JDO annotations. Never successfully.
Here is one of my variations:
---------------
@Uniques({...@unique(name="MYCONST_1", members={"userJID"})})
@Unique(name="MYCONST_2", members={"userJID"})
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class User
{
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;

    @Persistent
    @Unique(name="MYUSERJID_IDX")
    private String userJID;

[..]
---------------

Is there any way to apply "unique" constrain to a field of a class
using JDO annotations?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to