Make model class doesn't use Key object for cloud-endpoints. - @Attribute(primaryKeyName=true) String key; // is set key name of entity key - @Attribute(primaryKeyId=true) Long key; // is set key id of entity key