13

I have recently heard a lot of praise for Apple's Core Data architecture.

Is there something similar in Java land, so that I can play around with Core Data's ideas (in order to evaluate how it stacks up against something like Hibernate) without having to get into Cocoa/Objective-C first?

4

4 回答 4

6

请记住,正如我所理解的 Hibernate 等人,Core Data 主要不是一个对象持久性框架成为。相反,它是一个对象图管理框架(它维护受模型约束的对象的关系和更改状态),尽管它不是一个依赖注入框架(如 Groovy 或 Springs)。碰巧它可以使用几种后端格式(包括 SQLite)之一将此对象图保存到磁盘。Core Data 也不适合多用户系统,就像最初的Enterprise Object Framework一样。它专门用于单用户桌面应用程序,并自动执行为该类型应用程序编写模型层的大部分工作。对于其他任何事情,它可能都不合适。

你考虑 Core Data 是为了什么?如果您给我们一个更具体的用例,也许我们可以提供更具体的答案。

于 2009-01-26T19:13:02.353 回答
4

如果你有一台 Mac,安装 WebObjects——它包含在 Xcode 中——你就可以访问基于 Java 的 Enterprise Objects Framework。

于 2009-01-31T06:35:03.607 回答
0

目前还没有——他们放弃 EOF 的 Java 转换的原因之一是翻译带来的复杂性 ( http://en.wikipedia.org/wiki/Core_Data )。

于 2009-01-23T20:21:32.663 回答
0

While I only know about Core Data what I have just read, it sounds like the Eclipse Modeling Framework and the Graphical Modeling Framework would do something similar, as they also provide automatic generation of a GUI from a schema, and take care of persistence of schema instances. To get relational database persistence, they could maybe be combined with EclipseLink (which is based on Oracle's TopLink), or some other ORM framework.

于 2009-01-24T16:25:22.967 回答