Appengine Cloud端点和核心数据 [英] Appengine Cloud Endpoints & core data

查看:240
本文介绍了Appengine Cloud端点和核心数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Cloud Endpoints生成的库时,是否仍然使用核心数据,而无需手动创建模型?是否有任何简单的方法来整合这两个对象,以便来自端点的对象可以持有核心数据?

When using Cloud Endpoints generated libs, is there anyway to use core data without manually creating models? Is there any easy way to integrate the two so the objects from the endpoint can be persisted with core data?

推荐答案

知道任何通用解决方案。在我看来,两个哲学 - Appengine Cloud Endpoints作为关系数据库与Core Data作为一个对象图 - 只是不同,以促进一个没有任何手动适应的解决方案。

I am not aware of any generic solution. It seems to me that the two philosophies - Appengine Cloud Endpoints as a relational database vs. Core Data as an object graph - are just to different to facilitate a solution without any manual adaptation.

所以没有简单的方法来整合这两个。话虽如此,如果你编写自己的转换解决方案,最复杂的部分似乎是从外键到关系的变化。除此之外,它不应该太难。

So there is no "easy way to integrate the two". That being said, if you write your own conversion solution, the most complicated part seems to be the change from foreign keys to relationships. Apart from that it should not be too difficult.

这篇关于Appengine Cloud端点和核心数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆