I have two classes with unowned relationship.  I am making tenant key as a
key field in the MasterUserLogin.  How can I make them belong to the same
entity group

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Tenant {

    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    @Extension(vendorName = "datanucleus", key="gae.encoded-pk",
value="true")
    private String id;

    @Persistent
    @Extension(vendorName = "datanucleus", key="gae.pk-name", value="true")
    private String name;
}

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class MasterUserLogin {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private String id;

    @Persistent
    private Key currentTenantKey;
....
}

Regards
-Aswath

--

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