I have a Recipe entity that contains two images: @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable="true") public class Recipe { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key key; @Persistent private MyImage myImage; // full-size image @Persistent private MyImage thumb; // 224x230 thumbnail version of the above
When I persist this to the datastore, the images are stored correctly. However the issue comes when I try referencing the images using `.getMyImage()` and `.getThumb()`. They both point to the same object even though I can see in the datastore viewer that they are two images of different size. If they are stored in the datastore corretly this means that there's an issue with how I reference the object I suppose. Why is this? This is the object I persist, and as you can see the `myImage` and `thumb` objects are different (not showing the code for them, but trust me they are). Recipe recipe = new Recipe(user.getKey(), title, new Text(content), myImage, thumb, tagsAsStrings); Any ideas why I keep on referencing the same object? -- 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-java@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.