52ky 发表于 2022-6-16 08:28:04

hibernate中文参考文档.pdf

在当今的企业环境中,将面向对象的软件与关系数据库结合使用可能既麻烦又耗时。 Hibernate 是用于 Java 环境的对象/关系数据库映射工具。术语对象/关系映射 (ORM) 指的是一种将由对象模型表示的对象映射到基于 SQL 的关系模型数据结构的技术。
Hibernate 不仅管理 Java 类到数据库表的映射(包括 Java 数据类型到 SQL 数据类型的映射),还提供了数据查询和数据获取方式,可以大大减少手动使用 SQL 和 JDBC 处理的时间开发过程中的数据。
Hibernate 的目标是解放 95% 的开发人员常用的数据持久性相关的编程任务。对于以数据为中心的程序,往往只使用数据库中的存储过程来实现业务逻辑,Hibernate 可能不是最好的解决方案;对于那些基于 Java 的中间层应用程序,他们实现面向对象的业务模型和业务逻辑应用程序,Hibernate 是最有用的。无论哪种方式,Hibernate 都绝对可以帮助您消除或包装特定于供应商的 SQL 代码,并帮助您将结果集从表格表示形式转换为一系列对象。
如果您是 Hibernate 和对象/关系数据库映射的新手,甚至是 Java 新手,请按照以下步骤进行学习。

(In today's enterprise environment, combining object-oriented software with relational databases can be cumbersome and time-consuming. Hibernate is an object / relational database mapping tool for the Java environment. The term object / Relational Mapping (ORM) refers to a technique that maps objects represented by an object model to SQL based relational model data structures.
Hibernate not only manages the mapping from Java classes to database tables (including the mapping from Java data types to SQL data types), but also provides data query and data acquisition methods, which can greatly reduce the time for manual SQL and JDBC processing and the data in the development process.
The goal of Hibernate is to free 95% of the data persistence related programming tasks commonly used by developers. For data centric programs, only stored procedures in the database are often used to implement business logic, and Hibernate may not be the best solution; For those Java based middle tier applications that implement object-oriented business models and business logic applications, hibernate is the most useful. Either way, hibernate can definitely help you eliminate or wrap vendor specific SQL code and help you transform result sets from tabular representations to a series of objects.
If you are new to hibernate and object / relational database mapping, or even to Java, please follow these steps.)




页: [1]
查看完整版本: hibernate中文参考文档.pdf