I have a problem when assign an object using polymorphism.
Received a child of type model.Empate for a field of type
model.Resultado. Unfortunately polymorphism in relationships is not
yet supported.
par1=new Partido("23", new Empate(), eq1,eq2, fecha);
The constructor:
public Partido(Long numero, Resultado resultado, Equipo equipoLocal,
Equipo equipoVisitante, Date fechaPartido) {
super();
this.numero = numero;
this.resultado = resultado;
this.setEquiposPartido(new ArrayList<Equipo>());
this.equiposPartido.add(equipoLocal);
this.equiposPartido.add(equipoVisitante);
this.fechaPartido = fechaPartido;
}
The class Empate extends the class Resultado(parent).
Regards
Lisandro
--
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.