@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Unit {
...
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key id;
...
public Unit( long id ) {
this.id = KeyFactory.createKey(Unit.class.getSimpleName(), id);
}
I also tried to use Long as ID and to set it directly, but with the
same result.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---