BookFk is an embedded class intended to be used by entities like Chapter and others. It is NOT intended to be a standalone entity or have a Primary Key. So, when I try your fix I get the following compile error:
SEVERE: Class struts2.example4.BookFk has application-identity and no objectid-class specified yet has 0 primary key fields. Unable to use SingleFieldIdentity. This pattern was submitted by Bryce as a way of better handling redundant data related to FK fields such as Chapter.book in this case. On Nov 4, 10:59 am, datanucleus <andy_jeffer...@yahoo.com> wrote: > Why is BookFK trying to use Datastore Identity ? (as the message says) > > "identityType=IdentityType.APPLICATION" would be recommended --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---