Automatic generation method of ORM DAO code based on database entity objects
By automatically identifying database entity objects and generating DAO instances within the ORM framework, the problems of repetitive code and tedious manual DAO file generation in the ORM framework are solved, thus simplifying database operation processes and improving development efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- 英汇智能(深圳)有限公司
- Filing Date
- 2025-10-11
- Publication Date
- 2026-06-30
AI Technical Summary
In ORM frameworks, developers need to manually generate a large number of repetitive DAO and Mapper files, which leads to a large workload, a high risk of errors, high maintenance complexity, and poor flexibility and scalability.
During the application startup phase, the project code is traversed, database entity objects are identified and metadata is parsed, a general Mapper is configured, generic DAO class instances are generated, and they are registered through the IOC container to simplify the database operation process.
Improve development efficiency, reduce manual errors and maintenance costs, simplify database operation processes, and enhance code flexibility and scalability.
Smart Images

Figure CN121029144B_ABST