Usuario.class
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Usuario {
        @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key usuarioId;
        @Persistent
        private String usuario;
        @Persistent
        private String clave;
        @Persistent
        private Persona persona;
//..
}

Persona.class
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Persona {
        @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
        private Long personaId;
        @Persistent
        private String nombre;
        @Persistent
        private String apellido;
        @Persistent
        private String direccion;
        @Persistent
        private String correo;
        @Persistent
        private String telefono;
        @Persistent
        private String foto;
        @Persistent(mappedBy = "persona")
    private Usuario usuario;
 //...
}

When I have to save I don't Know which one go first??
That is one problem


I managed to save , First Persona then Usuario then, but when I do a
query to Usuario does not bring the Persona object is within


Please someone can help me??

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