此内容没有您所选择的语言版本。

Chapter 1. Introduction


Hibernate, like all other object/relational mapping tools, requires metadata that governs the transformation of data from one representation to the other. In Hibernate 2.x mapping metadata is most of the time declared in XML text files. Alternatively XDoclet can be used utilizing Javadoc source code annotations together with a compile time preprocessor.
The same kind of annotation support is now available in the standard JDK, although more powerful and with better tools support. IntelliJ IDEA and Eclipse for example, support auto-completion and syntax highlighting of JDK 5.0 annotations which are compiled into the bytecode and read at runtime using reflection. No external XML files are needed.
The JPA specification recognizes the interest and the success of the transparent object/relational mapping paradigm. It standardizes the basic APIs and the metadata needed for any object/relational persistence mechanism. Hibernate EntityManager implements the programming interfaces and lifecycle rules as defined by the JPA persistence specification and together with Hibernate Annotations offers a complete (and standalone) JPA persistence solution on top of the mature Hibernate core. You may use a combination of all three together, annotations without JPA programming interfaces and lifecycle, or even pure native Hibernate, depending on the business and technical needs of your project. At all times you cann fall back to Hibernate native APIs, or if required, even to native JDBC and SQL.
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat