A method and system for full-stack code automatic generation from data models to C++-web services
By defining JPP, a domain-specific language for data models, the system achieves automated generation of data structures, serialization code, database scripts, and web service layers from a single data model. This solves the problems of low efficiency, difficulty in multilingual adaptation, and insufficient support for domestic databases in C++ application development, thereby improving development efficiency and data consistency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- NANKAI UNIV
- Filing Date
- 2026-03-13
- Publication Date
- 2026-06-12
AI Technical Summary
In C++ application development, existing technologies suffer from low development efficiency, complex multi-language heterogeneous communication, difficulty in adapting to domestic databases, and a disconnect between front-end and back-end models. In particular, in the fields of high-performance computing, industrial control, and financial transactions, there is a lack of methods for automatically generating full-stack code.
This paper presents a method for automating the generation of full-stack code from data models to C++-Web services. By defining a domain-specific language JPP for data models and using a C++-like syntax structure and annotation mechanism, it generates multi-language data structures, serialization code, database scripts, and Web service layer code. It supports domestic databases such as DM Database and realizes the automated generation of multi-language data structures from a single data model.
It significantly improves the efficiency of C++ application development, reduces boilerplate code writing by more than 80%, lowers the cost of domestic migration, ensures data structure consistency and interface consistency, improves serialization performance, and supports multi-language collaborative development.
Smart Images

Figure CN122195418A_ABST