morphia icon indicating copy to clipboard operation
morphia copied to clipboard

Backport #961 to 1.2.x

Open d4nirod opened this issue 9 years ago • 5 comments

@evanchooly: we're getting hit by #961 on 1.2.2, any chance to backport the fix? See also #941

Thanks

d4nirod avatar Dec 23 '16 13:12 d4nirod

ping @evanchooly

d4nirod avatar Jan 10 '17 11:01 d4nirod

@evanchooly: so no love for this one? 😢

d4nirod avatar Feb 16 '17 13:02 d4nirod

Well, I've left MongoDB so my access isn't quite what it was. While I'm still planning on contributing, etc. some of those decisions are no longer mine to make.

evanchooly avatar Feb 16 '17 16:02 evanchooly

Generally we don't backport bug fixes to previous minor releases. What's preventing you from upgrading to 1.3.0?

jyemin avatar Feb 16 '17 17:02 jyemin

The root cause it's actually a change in the driver API introduced in r3.0.0: ObjectId was made final.

We're stuck with Morphia 1.2.x + MongoDB Java Driver 2.14.x until we can dedicate time and resources to refactor. It´s really non-trivial for us since we make extensive use of our own type-safe object ID class: class EntityId<T> extends ObjectId which we wouldn't be able to do after r3.0.0. More details including code samples in in our Google groups discussion from a while ago.

So as for the backporting request I know it might be a pain in the royal but, short of bypassing Morphia altogether and replacing the offending code with equivalent raw Java Driver statements, I´m running out of ideas.

d4nirod avatar Feb 17 '17 08:02 d4nirod