Chat orm (object-relational Mapping Object-Relationship mapping)

Source: Internet
Author: User
Tags reflection

About the database crud (create retrieve update delete) Automation AIDS, the leader must be an ORM (object-relational mapping) tool.

Hibernate,activerecord can be said to play a Java,ruby language philosophy to the ultimate tool, the other dynamic language Orm tools mostly refer to both the architecture and model, use their premise is to grasp the object-oriented basis (object-oriented 3 Principles and applications) and database application basics (design paradigm and SQL language).

Relatively simple is a library of simple crud functionality based on the table structure obtained in the database, but because the function is too simple to handle the relationship between tables and tables is not enough, in my practical experience very early abandoned.

Speaking back to the static language, the C + + language has so far no complete case of ORM tools, because the C + + standard library does not provide a complete reflection library, only provides the basic RTTI. No ORM is written without a reflection library, so although a handful of molecules have studied their own reflection libraries, then write ORM, but all miscarried, or deformation-using a limited function of the disguise to implement some of the functions, in Joel's blog someone sent a C + + ORM Discussion, a few, the discussion of the class library I looked at the , are not complete.

Then the static language is really dying. The Baolan, which is supported by billions of Chinese developers (the IDE, which has been part of the CodeGear company for living beyond its means) and the VCL library designed and developed by Microsoft, has enough reflexes, a Delphi developer in the country Yyanghhong developed a ORM Tools, according to his last Javaeye post, will refer to the hibernate structure to achieve the Delphi version of the ORM, but there has been no news for more than 1 years-probably like me, after the Hibernate and Tomcat modules released 1 years ago, I have been asked about the relevant knowledge, but a person who has been busy for dinner is ignored. Another netizen provides an open source Delphi Orm Emvc, currently only out to 1.03alpha version, I have not used.

Because VCL Library of strong, based on his C + + Builder also have the same power, after my research, Delphi and C + + Builder are capable of achieving ORM.

In an ORM era, static language does not have its own ORM is painful, for C + + in the development of MIS function, some companies now use with Python, using the Python language ORM Library to develop.

  

Words to the end of this, do not worry about eating, I would like to polish and polished C + + orm, hehe.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.