Hi! I have a problem with retreive an object with the relation
one-to many. The class Torneo has many Fecha objects.
The declaration of class Torneo:
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
//@Extension(vendorName = "datanucleus", key = "gae.encoded-pk",
value = "true")
private Long id;
@Persistent
private List<Fecha> fechasTorneo;
@Persistent
private List<Usuario> usuarios;
@Persistent( defaultFetchGroup = "true")
private List<Equipo> equiposTorneo;
The declaration of class Fecha:
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key id;
@Persistent
private String nombre;
@Persistent
private Date fechaIni;
@Persistent
private Date fechaFin;
@Persistent(defaultFetchGroup = "true")
private Fecha fechaTorneo;
@Persistent(defaultFetchGroup = "true")
List<Partido> partidos;
I have in my code the id (of type Long) of the Fecha that retrieve by
the request in my .jsp of to recover it with the
"getObjectById(Fecha.class, id)":
"Could not retrieve entity of kind Fecha with key Fecha(8)"
Since it should obtain it?
Regards
--
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.