WO2019169814A1 - Procédé, appareil et dispositif de génération automatique d'annotation en chinois, et support d'informations - Google Patents
Procédé, appareil et dispositif de génération automatique d'annotation en chinois, et support d'informations Download PDFInfo
- Publication number
- WO2019169814A1 WO2019169814A1 PCT/CN2018/094102 CN2018094102W WO2019169814A1 WO 2019169814 A1 WO2019169814 A1 WO 2019169814A1 CN 2018094102 W CN2018094102 W CN 2018094102W WO 2019169814 A1 WO2019169814 A1 WO 2019169814A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- chinese
- entity class
- class code
- java entity
- name
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/43—Checking; Contextual analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/73—Program documentation
Definitions
- the present application relates to the field of software technologies, and in particular, to a method, an apparatus, a device, and a computer readable storage medium for automatically generating Chinese annotations.
- the main purpose of the present application is to provide a method, device, device and computer readable storage medium for automatically generating Chinese annotations, which are intended to solve the existing Chinese annotation method, which will reduce the development efficiency and affect the accuracy of Chinese annotations, resulting in Technical issues of wasted human resources.
- the present application provides a method for automatically generating Chinese annotations, the method comprising:
- the step of adding the extracted Chinese comment name to the converted JAVA entity class code includes:
- the step of comparing the converted JAVA entity class code with the JAVA entity class code in the database, and extracting the corresponding Chinese comment name according to the comparison result includes:
- And adding a module configured to obtain a corresponding Chinese comment name by using the correspondence relationship of the structure table information, and add the extracted Chinese comment name to the converted JAVA entity class code.
- the main solution of the embodiment of the present application is: creating a database structure table according to the received instruction, and acquiring the database structure table information; when receiving the conversion instruction, extracting a corresponding field type correspondence table, and according to the extracted field
- the type correspondence table converts the structure table information into a JAVA entity class code; obtains a corresponding Chinese comment name by using the correspondence relationship of the structure table information, and adds the extracted Chinese comment name to the converted JAVA entity class
- the Chinese comment can be automatically added to the corresponding code by the above method, and the user does not need to manually add it, thereby improving the development efficiency and improving the accuracy of the Chinese comment.
- the table cust_test_info for testing obtains the database structure table information
- the structure table information may include a table name, a field name, a Chinese comment name, a field type, and a field length;
- the field name may be test_name , the field type is varchar(10), not null is not null, the Chinese comment is named "test name”.
- step S20 includes:
- the structure table information may be mapped into a JAVA type by using the corresponding relationship table.
- the structure table information type is BIGINT
- the corresponding JAVA type is Long
- the structure table information is BIGINT, it is mapped to Long according to the field type correspondence table;
- the database table name is further converted into a large hump or a small hump as a JAVA entity class name, for example, the test_name is modified to a hump form testName as a JAVA entity class. name.
- mapping the JAVA type directly extracting the JAVA entity class code corresponding to the structure table information, and sorting the converted JAVA entity class code according to the order of the structure table information, and filling the JAVA entity class name into the JAVA entity class
- the corresponding position in the code for example, when the JAVA entity class name is the name of the entire entity class code, the JAVA entity class name is filled in front of the entire entity class code, and the entity is the entity of the entire entity class code. Class name.
- Step S33 when the JAVA entity class code corresponding to the Chinese comment name does not have the same code, the Chinese comment name is added to the converted JAVA entity class code.
- a method for automatically generating Chinese annotations based on the present application provides a fourth embodiment of the method for automatically generating Chinese annotations.
- a method of partially adding a Chinese comment may be performed in each display page. Specifically, each display page code is traversed in order to obtain the same code in the JAVA entity class code in each display page; The JAVA entity class code can be traversed in the order in which the pages are displayed, thereby obtaining the same code in the JAVA entity class code in each display page;
- the degree of adoption of each database that is, the number and frequency of adoption by other users, may be further obtained;
- the Chinese comment corresponding to the converted JAVA entity class code is extracted from the database for extracting the Chinese comment as the Chinese comment name of the converted JAVA entity class code.
- the adoption degree of each database is compared and sorted, and the database with the highest adoption rate is obtained, and the database with the highest adoption is used as the database for extracting Chinese annotations; and the JAVA entity class extracted and converted from the database for extracting Chinese annotations is obtained.
- the Chinese comment corresponding to the code is used as the Chinese comment name of the converted JAVA entity class code.
- An obtaining module configured to create a database structure table according to the received instruction, and obtain the database structure table information
- And adding a module configured to obtain a corresponding Chinese comment name by using the correspondence relationship of the structure table information, and add the extracted Chinese comment name to the converted JAVA entity class code.
- the present application also provides a computer readable storage medium, which may be a non-volatile readable storage medium; the computer readable storage medium storing one or more readable instructions, The one or more readable instructions may be executed by one or more processors to implement the steps of various embodiments of the method of automatically generating Chinese annotations as described above.
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Library & Information Science (AREA)
- Machine Translation (AREA)
- Stored Programmes (AREA)
Abstract
La présente invention concerne un procédé de génération automatique d'une annotation en chinois. Le procédé comprend les étapes suivantes : la création d'une table de structure de base de données selon une instruction reçue, et l'acquisition des informations de table de structure de base de données ; lorsqu'une instruction de conversion est reçue, l'extraction d'une table de corrélation de type de champ correspondante, et selon la table de corrélation de type de champ extraite, la conversion des informations de table de structure en un code de classe d'entité JAVA ; et l'acquisition d'un nom d'annotation en chinois correspondant au moyen d'une corrélation des informations de table de structure, puis l'ajout du nom d'annotation en chinois extrait au code de classe d'entité JAVA obtenu au moyen de la conversion. La présente invention concerne en outre un appareil et un dispositif de génération automatique d'une annotation en chinois, et un support d'informations lisible par ordinateur. Selon la présente invention, le temps de développement de codes peut être réduit, l'efficacité pour développer des codes est améliorée et la précision de l'annotation en chinois est améliorée.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810199487.9A CN108509199A (zh) | 2018-03-09 | 2018-03-09 | 自动生成中文注释的方法、装置、设备及存储介质 |
CN201810199487.9 | 2018-03-09 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019169814A1 true WO2019169814A1 (fr) | 2019-09-12 |
Family
ID=63377519
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/094102 WO2019169814A1 (fr) | 2018-03-09 | 2018-07-02 | Procédé, appareil et dispositif de génération automatique d'annotation en chinois, et support d'informations |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108509199A (fr) |
WO (1) | WO2019169814A1 (fr) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109542453A (zh) * | 2018-11-20 | 2019-03-29 | 北京千丁互联科技有限公司 | 数据库信息识别方法、装置及计算机终端 |
CN111736813A (zh) * | 2020-06-24 | 2020-10-02 | 深圳前海微众银行股份有限公司 | Jpa代码的生成方法、装置、终端设备及存储介质 |
CN111984670B (zh) * | 2020-07-27 | 2024-03-19 | 北京天健源达科技股份有限公司 | 一种生成显示视图注释信息脚本的方法 |
CN112148746B (zh) * | 2020-08-21 | 2024-03-26 | 杭州安恒信息技术股份有限公司 | 生成数据库表结构文档的方法、装置、电子装置和存储介质 |
CN112394974B (zh) * | 2020-11-23 | 2024-05-07 | 平安科技(深圳)有限公司 | 代码变更的注释生成方法、装置、电子设备及存储介质 |
CN112416429A (zh) * | 2020-11-23 | 2021-02-26 | 平安普惠企业管理有限公司 | 代码注释生成方法及装置 |
CN113032360A (zh) * | 2021-03-04 | 2021-06-25 | 四川瀚库智数科技有限公司 | 推测数据库字段含义的方法 |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102129365A (zh) * | 2010-01-20 | 2011-07-20 | 阿里巴巴集团控股有限公司 | 一种生成代码说明文档的方法及装置 |
CN105824794A (zh) * | 2016-03-11 | 2016-08-03 | 天脉聚源(北京)教育科技有限公司 | 一种注释添加方法及装置 |
CN107608669A (zh) * | 2017-08-15 | 2018-01-19 | 山西云度知识产权服务有限公司 | 一种基于数据库表结构自动生成功能及页面的方法 |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101697120B (zh) * | 2009-11-05 | 2012-11-28 | 河南辉煌科技股份有限公司 | 基于关系型数据库的j2ee代码生成方法 |
US9753704B2 (en) * | 2012-01-18 | 2017-09-05 | Metrologic Instruments, Inc. | Web-based scan-task enabled system and method of and apparatus for developing and deploying the same on a client-server network |
CN102968306B (zh) * | 2012-11-29 | 2016-01-20 | 广东全通教育股份有限公司 | 一种基于数据模型驱动的代码自动生成方法和系统 |
CN105677323A (zh) * | 2015-12-31 | 2016-06-15 | 合肥大多数信息科技有限公司 | 一种自动生成数据库操作层代码的方法 |
CN106873974A (zh) * | 2016-12-30 | 2017-06-20 | 武汉默联股份有限公司 | 智能代码生成引擎系统及方法 |
CN107479883A (zh) * | 2017-08-07 | 2017-12-15 | 海闻科技有限公司 | 一种代码生成方法及代码生成器 |
-
2018
- 2018-03-09 CN CN201810199487.9A patent/CN108509199A/zh active Pending
- 2018-07-02 WO PCT/CN2018/094102 patent/WO2019169814A1/fr active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102129365A (zh) * | 2010-01-20 | 2011-07-20 | 阿里巴巴集团控股有限公司 | 一种生成代码说明文档的方法及装置 |
CN105824794A (zh) * | 2016-03-11 | 2016-08-03 | 天脉聚源(北京)教育科技有限公司 | 一种注释添加方法及装置 |
CN107608669A (zh) * | 2017-08-15 | 2018-01-19 | 山西云度知识产权服务有限公司 | 一种基于数据库表结构自动生成功能及页面的方法 |
Also Published As
Publication number | Publication date |
---|---|
CN108509199A (zh) | 2018-09-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019165691A1 (fr) | Procédé, appareil et dispositif de production automatique de cas de test, et support de stockage lisible par ordinateur | |
WO2019169814A1 (fr) | Procédé, appareil et dispositif de génération automatique d'annotation en chinois, et support d'informations | |
WO2019174375A1 (fr) | Procédé, appareil et dispositif de test d'interface, et support de stockage lisible par ordinateur | |
WO2018107610A1 (fr) | Procédé, système et dispositif de traitement de données de service, et support d'informations lisible par ordinateur | |
WO2018205545A1 (fr) | Procédé de génération de données, appareil, terminal, et support d'informations lisible par ordinateur | |
WO2019192085A1 (fr) | Procédé, appareil et dispositif pour une communication à connexion directe entre une banque et une entreprise, et support de stockage lisible par ordinateur | |
WO2019100638A1 (fr) | Procédé, dispositif et équipement de synchronisation de données, et support d'informations | |
WO2017041538A1 (fr) | Procédé et dispositif d'affichage commandé par interface utilisateur de terminal | |
WO2018227880A1 (fr) | Procédé, appareil, et dispositif de comparaison de données, et support d'informations lisible | |
WO2018205376A1 (fr) | Procédé d'interrogation d'informations d'association, terminal, système de gestion de serveur et support de stockage lisible par ordinateur | |
WO2019037396A1 (fr) | Procédé, dispositif et équipement de suppression de compte et support d'informations | |
WO2019075973A1 (fr) | Procédé et dispositif de test de programme d'application | |
WO2020224247A1 (fr) | Procédé, appareil et dispositif de provenance de données basés sur la chaine de blocs, et support d'informations lisible | |
WO2013143331A1 (fr) | Procédé et dispositif de partage d'informations d'utilisateur selon le navigateur de terminal | |
WO2019104876A1 (fr) | Procédé et système de poussée de produit d'assurance, terminal, terminal client et support d'informations | |
WO2019041832A1 (fr) | Procédé, serveur et système de modification de structure de table de base de données source, et support de stockage | |
WO2019024219A1 (fr) | Procédé et appareil de génération automatique de document, générateur automatique de document et support | |
WO2019196213A1 (fr) | Procédé, appareil et dispositif de test d'interface, et support d'informations lisible par ordinateur | |
WO2015144089A1 (fr) | Procédé et appareil de recommandation d'application | |
WO2018120430A1 (fr) | Procédé de construction de page, terminal, support de stockage lisible par ordinateur et dispositif de construction de page | |
WO2012028079A1 (fr) | Procédé et dispositif servant à importer les données de sauvegarde d'un terminal mobile | |
WO2018076811A1 (fr) | Dispositif électronique, support d'informations, système, dispositif et procédé de partage de données | |
WO2018188342A1 (fr) | Procédé, appareil et dispositif permettant de générer un fichier de script, et support d'informations lisible par ordinateur | |
WO2017036208A1 (fr) | Procédé et système pour extraire des informations dans une interface d'affichage | |
WO2018188196A1 (fr) | Procédé de commande de version de données, contrôleur de version de données, dispositif et support de stockage lisible par ordinateur |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18908360 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 08.12.2020) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18908360 Country of ref document: EP Kind code of ref document: A1 |