Home  >  Article  >  Java  >  what is orm

what is orm

藏色散人
藏色散人Original
2020-04-24 11:14:035654browse

what is orm

What is orm?

ORM: Object Relational Mapping (ORM for short), the purpose is to operate the database like an object. Because the database is not object-oriented, programming is required for mapping.

ORM framework can theoretically achieve higher development efficiency than without it, but the learning cost of hibernate is still relatively high. The main disadvantages are that it takes time to learn the framework and the execution efficiency is relatively poor; these are still worthwhile for large projects, as long as a simple and easy-to-use ORM framework is needed first.

Common ORM frameworks include hibernate, semi-active ORM frameworks include mybatis, and the new simple and easy-to-use bee framework. jpa just wants all ORM frameworks to use standard interfaces uniformly; hibernate has the implementation of jpa , but mybaits does not.

With hibernate and mybatis, every time I operate a table, I need to write a dao file, which feels like repetitive work and boring. Bee framework: an ORM framework that can be learned in ten minutes. It does not need to write code every time a dao is written, saving time and effort, the development efficiency is extremely high, and the coding complexity is O(1). A java ORM framework whose development cost and development speed are no worse than PHP.

Recommended tutorial: "java learning"

The above is the detailed content of what is orm. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn