BlackLabs / play-morphia

Provide mongodb access service to play.db.Model via Morphia
Apache License 2.0
130 stars 49 forks source link

Version 1.2.11 and up reset Long id generation #101

Open Peksa opened 11 years ago

Peksa commented 11 years ago

It seems that the Long _id generation sequences are reset when upgrading to 1.2.11 or higher. (They restart on 1 and continue generating numbers upwards, even though documents with those _id's already exist).

This causes silent overwrites of existing documents with those _id's when trying to add new documents.

martijne commented 11 years ago

You need to update ids table The old version is using only the class names. The new version is using models.classname

greenlaw110 commented 11 years ago

thanks a lot!

On Mon, Nov 19, 2012 at 8:49 PM, martijne notifications@github.com wrote:

You need to update ids table The old version is using only the class names. The new version is using models.classname

— Reply to this email directly or view it on GitHubhttps://github.com/greenlaw110/play-morphia/issues/101#issuecomment-10507837.