[appengine-java] Re: Persist child - Problem
Hi! The parent class "Partido" has the annotation: @Persistent( defaultFetchGroup = "true") private List equiposPartido; Regards! Lisandro On Dec 21, 6:50 pm, andrew wrote: > can you show the parent class, with the field for for the Equipo > child? > > It will no doubt have @Persistence annotations too... -- 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.
[appengine-java] Re: Persist child - Problem
can you show the parent class, with the field for for the Equipo child? It will no doubt have @Persistence annotations too... -- 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.
Re: [appengine-java] Re: Persist child - Problem
Perhaps Equipo is not properly linked to Fetcha? something like: @Persistent private Equipo myEquipo; public setEquipo( Equipo e ) { this.myEquipo = e; }; On Mon, Dec 20, 2010 at 1:36 PM, lisandrodc wrote: > Thanks andrew! My class Equipo has @persistence capable and > and serializable... The code: > import java.io.Serializable; > import javax.jdo.annotations.IdGeneratorStrategy; > import javax.jdo.annotations.IdentityType; > import javax.jdo.annotations.PersistenceCapable; > import javax.jdo.annotations.Persistent; > import javax.jdo.annotations.PrimaryKey; > > > import com.google.appengine.api.datastore.Key; > > @PersistenceCapable(identityType = > IdentityType.APPLICATION,detachable="true") > public class Equipo implements Serializable { >@PrimaryKey >@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) >private Key id; >@Persistent >private String nombre; >@Persistent >private String imagen; > > > > I'm not understand because it not pesist in the datastore. > Regards! > Lisandro > > On 20 dic, 04:02, andrew wrote: > > Is the child annotated as @persistence capable? > > Is it serializable? > > It also depends on the type of keys used and key generator strategy. > > > > Show us the code defining each class and we'll let you know. > > > > Quizas asi te ayudamos a poner tu equipo en primera división! :-) > > -- > 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. > > -- -- A. Stevko === "If everything seems under control, you're just not going fast enough." M. Andretti -- 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.
[appengine-java] Re: Persist child - Problem
Thanks andrew! My class Equipo has @persistence capable and and serializable... The code: import java.io.Serializable; import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.annotations.IdentityType; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import javax.jdo.annotations.PrimaryKey; import com.google.appengine.api.datastore.Key; @PersistenceCapable(identityType = IdentityType.APPLICATION,detachable="true") public class Equipo implements Serializable { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key id; @Persistent private String nombre; @Persistent private String imagen; I'm not understand because it not pesist in the datastore. Regards! Lisandro On 20 dic, 04:02, andrew wrote: > Is the child annotated as @persistence capable? > Is it serializable? > It also depends on the type of keys used and key generator strategy. > > Show us the code defining each class and we'll let you know. > > Quizas asi te ayudamos a poner tu equipo en primera división! :-) -- 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.
[appengine-java] Re: Persist child - Problem
Is the child annotated as @persistence capable? Is it serializable? It also depends on the type of keys used and key generator strategy. Show us the code defining each class and we'll let you know. Quizas asi te ayudamos a poner tu equipo en primera división! :-) -- 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.