我被困住了,需要你的帮助。
假设我有这个上下文可以使用 play 框架:
package object mongoContext {
implicit val context = {
val context = new Context {
val name = "global"
override val typeHintStrategy = StringTypeHintStrategy(when = TypeHintFrequency.WhenNecessary, typeHint = "_t")
}
context.registerGlobalKeyOverride(remapThis = "id", toThisInstead = "_id")
context.registerClassLoader(Play.classloader)
context
}
}
如何在数据库端动态查找将 FieldName id 重新映射到的内容?
提前致谢