Appengine Cloud Endpoints & core data

谁都会走 提交于 2019-12-12 04:54:09

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/17982359/appengine-cloud-endpoints-core-data

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!