SollmoStudio / beyond

Beyond: The Scalable Game Server Framework
http://www.beyondframework.com
Apache License 2.0
25 stars 9 forks source link

Make ScriptableQuery handle ScriptableObjectId. #127

Closed sgkim126 closed 10 years ago

sgkim126 commented 10 years ago

Currently, ScriptableQuery cannot handle ScriptableObjectId, because it uses AnyRefBSONHandler directly. We need to make AnyRefBSONHandler handle ScriptableObjectId or ScriptableQuery changes ScriptableObjectId to ObjectId before using AnyRefBSONHandler.

I decided the second choice because AnyRefBSONHandler is used by ScriptableDocument with convertJavaScriptToScalaWithField method. And ScriptableObjectId is not passed to AnyRefBSONHandler in this case.

kseo commented 10 years ago

Landed manually.