morphia icon indicating copy to clipboard operation
morphia copied to clipboard

Support for auto-increment long ID in model classes

Open sachin-walia opened this issue 11 years ago • 1 comments

Morphia supports ObjectID but it'd be a nicer feature to natively support generation of long Id. Play morphia plugin does it by using a secondary table to track last generated ID. We can think about using something similar.

sachin-walia avatar Apr 02 '13 16:04 sachin-walia

I have no personal desire to see this but feel free to supply a patch. I'm still battling to convert legacy apps from using auto-incrementing numbers to UUIDs...

On 2 April 2013 17:01, sachinwalia2k8 [email protected] wrote:

Morphia supports ObjectID but it'd be a nicer feature to natively support generation of long Id. Play morphia plugin does it by using a secondary table to track last generated ID. We can think about using something similar.

— Reply to this email directly or view it on GitHubhttps://github.com/jmkgreen/morphia/issues/52 .

jmkgreen avatar Apr 02 '13 18:04 jmkgreen