@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
public Long id;
isn't accessible. I'm assuming i just don't know how to create the
model correctly since i'm new to python. I'm getting a
MissingPropertyError: ID message
I'm thinking it's somthing simple regarding how i'm setting the id
= .. in both my exporter and model
Here is my model:
class NimbitsUser(db.Model):
id = db.IntegerProperty() <---- wrong eh?
email = db.StringProperty()
user = db.StringProperty()
userkey = db.StringProperty()
dateCreated = db.DateProperty()
and my exporter:
class UserExporter(bulkloader.Exporter):
def __init__(self):
bulkloader.Exporter.__init__(self, 'NimbitsUser',
[('email', str, None),
('user', str, None),
('userkey', str, None),
('dateCreated', str, None),
('id', int, None)
])
exporters = [UserExporter]
but i still get the error above. I'm wondering if the solution above
only works for the key type and not Long keys.