I'm having a problem w/ bulkloading entities for my Java app and specifying
autogenerated id's in my python model.
My Java class look similar to this:
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class MyEntity implements Serializable {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long id;
@Persistent
private String name;
@Persistent
private float otherFloat;
.
.
.
}
And my python model (for bulkloading) looks similar to this:
class CountryLoader(bulkloader.Loader):
def __init__(self):
bulkloader.Loader.__init__(self, 'MyEntity',
[('name', str),
('otherFloat', float)
])
*How do I specify the "id" in my python model?*
--
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.