What's Hibernate? and What is the function of Hibernate?
Working with object-oriented software and a relational database can be cumbersome and time consuming in today's enterprise environments. Hibernate is an Object/Relational Mapping tool for Java environments. The term Object/Relational Mapping (ORM) refers to the technique of mapping a data representation from an object model to a relational data model with a SQL-based schema.
Hibernate not only takes care of the mapping from Java classes to database tables (and from Java data types to SQL data types), but also provides data query and retrieval facilities. It can also significantly reduce development time otherwise spent with manual data handling in SQL and JDBC.
Hibernate's goal is to relieve the developer from 95 percent of common data persistence related programming tasks. Hibernate may not be the best solution for data-centric applications that only use stored-procedures to implement the business logic in the database, it is most useful with object-oriented domain models and business logic in the Java-based middle-tier. However, Hibernate can certainly help you to remove or encapsulate vendor-specific SQL code and will help with the common task of result set translation from a tabular representation to a graph of objects.
说白了hibernate就是对数据库中数据的封装(以类的形式存在),上层的应用程序在使用时直接可以和hibernate交互,从而隔离了数据库,便于项目管理。
Hibernate是一款用于Java环境的对象/关系映射工具,它不仅能够处理Java类到数据库表的映射,还提供了数据查询和检索的功能。通过使用Hibernate,开发者可以减少在SQL和JDBC上的手动数据处理工作,显著提升开发效率。
2152

被折叠的 条评论
为什么被折叠?



