[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN108399081A - A kind of MyBatis reverse-engineerings generator - Google Patents

A kind of MyBatis reverse-engineerings generator Download PDF

Info

Publication number
CN108399081A
CN108399081A CN201810133395.0A CN201810133395A CN108399081A CN 108399081 A CN108399081 A CN 108399081A CN 201810133395 A CN201810133395 A CN 201810133395A CN 108399081 A CN108399081 A CN 108399081A
Authority
CN
China
Prior art keywords
plug
unit
reverse
mybatis
engineerings
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810133395.0A
Other languages
Chinese (zh)
Other versions
CN108399081B (en
Inventor
曹传雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Liangkeshu Network Technology Co Ltd
Original Assignee
Guangzhou Liangkeshu Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Liangkeshu Network Technology Co Ltd filed Critical Guangzhou Liangkeshu Network Technology Co Ltd
Priority to CN201810133395.0A priority Critical patent/CN108399081B/en
Publication of CN108399081A publication Critical patent/CN108399081A/en
Application granted granted Critical
Publication of CN108399081B publication Critical patent/CN108399081B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/74Reverse engineering; Extracting design information from source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention discloses a kind of MyBatis reverse-engineerings generator, to support customized annotation plug-ins in database, the MyBatis reverse-engineerings generator to be made of following plug-in unit:Date format plug-in unit, dynamic support the date format of multiple combinations;Currency style plug-in unit supports the currency style of multidigit decimal;Dynamic character string type plug-in unit, for any type to be converted into character string;Dynamic Object type plug-ins, for other types to be converted into Object;Plug-in unit is searched for, for searching for any type of data;Long types convert plug-in unit, and Long is converted into String;Cache plug-in is used for interim storage data;Distributed lock plug-in unit controls synchronization of access shared resource between distributed system;Annotation plug-ins annotate dynamic generation.The present invention supports configurableization, mobilism, plug-in unit reverse-engineering, can support any database annotation plug-in unit for meeting cannonical format.

Description

A kind of MyBatis reverse-engineerings generator
Technical field
The present invention relates to MyBatis reverse-engineerings, more particularly to a kind of MyBatis reverse-engineerings generator.
Background technology
At present MyBatis reverse-engineerings on the market can not can configure, mobilism is reverse, cannot support to make by oneself in data The annotation plug-ins of justice carry out reverse-engineering.
Therefore, the prior art is defective, needs to improve.
Invention content
It is an object of the invention to overcome the deficiencies of the prior art and provide a kind of support configurableization, mobilism, plug-in units Reverse-engineering can support the MyBatis reverse-engineering generators of any database annotation plug-in unit for meeting cannonical format.
Technical scheme is as follows:A kind of MyBatis reverse-engineerings generator supports customized note in database Plug-in unit is released, the MyBatis reverse-engineerings generator is made of following plug-in unit:
Date format plug-in unit, dynamic support the date format of multiple combinations;
Currency style plug-in unit supports the currency style of multidigit decimal;
Dynamic character string type plug-in unit, for any type to be converted into character string;
Dynamic Object type plug-ins, for other types to be converted into Object;
Plug-in unit is searched for, for searching for any type of data;
Long types convert plug-in unit, and Long is converted into String;
Cache plug-in is used for interim storage data;
Distributed lock plug-in unit controls synchronization of access shared resource between distributed system;
Annotation plug-ins annotate dynamic generation.
Wherein, the date format plug-in unit dynamic supports yyyy-MM-dd, yyy-MM-ddHH:Mm, yyy-MM-ddHH: mm:The date format of the various combinations of SSS.
Wherein, the currency style that the currency style plug-in unit is supported includes int and bigint types.
Wherein, the currency style plug-in unit supports the currency style of six decimals.
Wherein ,@DynamicS and@the DynamicSS plug-in units in the dynamic character string type plug-in unit correspondence database.
Wherein ,@Dynamic00 and@the Dynamic0 plug-in units in the dynamic Object type plug-in correspondence databases.
Wherein, (index=" msyt-index ", type=of the@Search in described search plug-in unit correspondence database " msyt-type ") plug-in unit.
Wherein, the Long2S (targetField=in the Long types conversion plug-in unit correspondence database " idxCode ") plug-in unit.
Wherein, the Cache in the cache plug-in correspondence database (module=" msyt-collector ") plug-in unit.
Wherein, the@Lock in the distributed lock plug-in unit correspondence database (module=" msyt-item ") plug-in unit.
Compared with the existing technology, the beneficial effects of the present invention are:The present invention supports the customized annotation plug-ins of database, Optimize SQL, development efficiency can be provided according to the customized annotation plug-ins of database, the reverse code of dynamic generation, realize and criticize Amount, the dynamic reverse-engineering of multi-configuration file, a variety of plug-in units.
Description of the drawings
Fig. 1 is a kind of structure composition figure of MyBatis reverse-engineerings generator of the present invention.
Specific implementation mode
Below in conjunction with the drawings and specific embodiments, the present invention is described in detail.
Referring to FIG. 1, a kind of MyBatis reverse-engineerings generator provided by the invention, is supported customized in database Annotation plug-ins, the MyBatis reverse-engineerings generator 1 are made of following plug-in unit:
Date format plug-in unit 11, dynamic support yyyy-MM-dd, yyy-MM-ddHH:Mm, yyy-MM-ddHH:mm:SSS is each The date format of kind combination.
Currency style plug-in unit 12 supports the currency style of int and bigint types, currency style to support@$ 1 ,@$ 2 ,@$ 3 ,@$ 4 ,@$ 5 ,@$ 6,1 indicate 1 decimal, and 2 indicate 2 decimals, and 3 indicate 3 decimals, and 4 indicate 4 decimals, and 5 indicate 5 small Number, 6 indicate 6 decimals.
Dynamic character string type plug-in unit 13 ,@DynamicS and@the DynamicSS plug-in units in correspondence database, can be arbitrary Type is converted into character string.
Dynamic Object type plug-ins 14 ,@Dynamic00 and@the Dynamic0 plug-in units in correspondence database, can be by it He is converted into Object at type.
Search for plug-in unit 15 ,@Search (index=" msyt-index ", type=" msyt- in correspondence database Type ") plug-in unit, for searching for any type of data.
Long types convert plug-in unit 16, and String is converted into using Long, solve Long in JS and lose precision problem, corresponding @Long2S (targetField=" idxCode ") plug-in unit in database.
Cache plug-in 17, Cache (module=" msyt-collector ") plug-in unit in correspondence database, for interim Store data.
Distributed lock plug-in unit 18 ,@Lock (module=" msyt-item ") plug-in unit in correspondence database, control distribution Synchronization of access shared resource between formula system.
Annotation plug-ins 19, dynamic generation is annotated.
The present invention supports the customized annotation plug-ins of database, optimizes SQL, can be inserted according to the customized annotation of database Part, the reverse code of dynamic generation provide development efficiency, realize the dynamic reverse-engineering of batch, multi-configuration file, a variety of plug-in units.
In conclusion the present invention supports configurableization, mobilism, plug-in unit reverse-engineering, can support any to meet rule The database annotation plug-in unit of model format.
The above is merely preferred embodiments of the present invention, be not intended to restrict the invention, it is all the present invention spirit and All any modification, equivalent and improvement made by within principle etc., should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of MyBatis reverse-engineerings generator supports customized annotation plug-ins in database, which is characterized in that described MyBatis reverse-engineerings generator is made of following plug-in unit:
Date format plug-in unit, dynamic support the date format of multiple combinations;
Currency style plug-in unit supports the currency style of multidigit decimal;
Dynamic character string type plug-in unit, for any type to be converted into character string;
Dynamic Object type plug-ins, for other types to be converted into Object;
Plug-in unit is searched for, for searching for any type of data;
Long types convert plug-in unit, and Long is converted into String;
Cache plug-in is used for interim storage data;
Distributed lock plug-in unit controls synchronization of access shared resource between distributed system;
Annotation plug-ins annotate dynamic generation.
2. a kind of MyBatis reverse-engineerings generator according to claim 1, it is characterised in that:The date format is inserted Part dynamic supports yyyy-MM-dd, yyy-MM-ddHH:Mm, yyy-MM-ddHH:mm:The date format of the various combinations of SSS.
3. a kind of MyBatis reverse-engineerings generator according to claim 1, it is characterised in that:The currency style is inserted The currency style that part is supported includes int and bigint types.
4. a kind of MyBatis reverse-engineerings generator according to claim 3, it is characterised in that:The currency style is inserted Part supports the currency style of six decimals.
5. a kind of MyBatis reverse-engineerings generator according to claim 1, it is characterised in that:The dynamic character string @DynamicS and@DynamicSS plug-in units in type plug-in correspondence database.
6. a kind of MyBatis reverse-engineerings generator according to claim 1, it is characterised in that:The dynamic Object @Dynamic00 and@Dynamic0 plug-in units in type plug-in correspondence database.
7. a kind of MyBatis reverse-engineerings generator according to claim 1, it is characterised in that:Described search plug-in unit pair Answer@Search (index=" msyt-index ", type=" msyt-type ") plug-in unit in database.
8. a kind of MyBatis reverse-engineerings generator according to claim 1, it is characterised in that:The Long types turn Insert@Long2S (targetField=" idxCode ") plug-in unit in part correspondence database.
9. a kind of MyBatis reverse-engineerings generator according to claim 1, it is characterised in that:The cache plug-in pair Answer Cache (module=" msyt-collector ") plug-in unit in database.
10. a kind of MyBatis reverse-engineerings generator according to claim 1, it is characterised in that:The distributed lock is inserted @Lock (module=" msyt-item ") plug-in unit in part correspondence database.
CN201810133395.0A 2018-02-09 2018-02-09 MyBatis reverse engineering generator Active CN108399081B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810133395.0A CN108399081B (en) 2018-02-09 2018-02-09 MyBatis reverse engineering generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810133395.0A CN108399081B (en) 2018-02-09 2018-02-09 MyBatis reverse engineering generator

Publications (2)

Publication Number Publication Date
CN108399081A true CN108399081A (en) 2018-08-14
CN108399081B CN108399081B (en) 2021-01-26

Family

ID=63096012

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810133395.0A Active CN108399081B (en) 2018-02-09 2018-02-09 MyBatis reverse engineering generator

Country Status (1)

Country Link
CN (1) CN108399081B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111079188A (en) * 2019-12-27 2020-04-28 苏州海管家物流科技有限公司 mybatis field encryption and decryption device and encryption and decryption system

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120204142A1 (en) * 2011-02-09 2012-08-09 Schlumberger Technology Corporation Oilfield application system
CN103336760A (en) * 2013-07-11 2013-10-02 北京信息科技大学 Method and device based on reverse engineering for automatically generating software documents
US8667476B1 (en) * 2009-01-20 2014-03-04 Adaptmicrosys LLC Instruction grouping and ungrouping apparatus and method for an adaptive microprocessor system
US20160092246A1 (en) * 2014-09-26 2016-03-31 Oracle International Corporation Reverse dependency injection in a system with dynamic code loading
US9389934B1 (en) * 2014-12-18 2016-07-12 Sap Se Centralized and distributed notification handling system for software applications
CN105830019A (en) * 2013-10-18 2016-08-03 微软技术许可有限责任公司 Integrated environment for base model generation
CN105843638A (en) * 2016-03-18 2016-08-10 浪潮软件集团有限公司 Upgrading and reconstruction method for Spring old version framework
US20160232009A1 (en) * 2010-12-06 2016-08-11 Microsoft Technology Licensing, Llc Fast computer startup
CN105893013A (en) * 2015-12-07 2016-08-24 乐视云计算有限公司 Engineering construction system and construction method thereof
US20160253168A1 (en) * 2012-09-28 2016-09-01 Oracle International Corporation Synchronization of configuration changes between applications and their platforms
CN107148615A (en) * 2014-11-27 2017-09-08 乐金信世股份有限公司 Computer executable model reverse engineering approach and device
CN107479883A (en) * 2017-08-07 2017-12-15 海闻科技有限公司 A kind of code generating method and code generator

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8667476B1 (en) * 2009-01-20 2014-03-04 Adaptmicrosys LLC Instruction grouping and ungrouping apparatus and method for an adaptive microprocessor system
US20160232009A1 (en) * 2010-12-06 2016-08-11 Microsoft Technology Licensing, Llc Fast computer startup
US20120204142A1 (en) * 2011-02-09 2012-08-09 Schlumberger Technology Corporation Oilfield application system
US20160253168A1 (en) * 2012-09-28 2016-09-01 Oracle International Corporation Synchronization of configuration changes between applications and their platforms
CN103336760A (en) * 2013-07-11 2013-10-02 北京信息科技大学 Method and device based on reverse engineering for automatically generating software documents
CN105830019A (en) * 2013-10-18 2016-08-03 微软技术许可有限责任公司 Integrated environment for base model generation
US20160092246A1 (en) * 2014-09-26 2016-03-31 Oracle International Corporation Reverse dependency injection in a system with dynamic code loading
CN107148615A (en) * 2014-11-27 2017-09-08 乐金信世股份有限公司 Computer executable model reverse engineering approach and device
US9389934B1 (en) * 2014-12-18 2016-07-12 Sap Se Centralized and distributed notification handling system for software applications
CN105893013A (en) * 2015-12-07 2016-08-24 乐视云计算有限公司 Engineering construction system and construction method thereof
CN105843638A (en) * 2016-03-18 2016-08-10 浪潮软件集团有限公司 Upgrading and reconstruction method for Spring old version framework
CN107479883A (en) * 2017-08-07 2017-12-15 海闻科技有限公司 A kind of code generating method and code generator

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SAM199510: "IntelliJ IDEA下MyBatis逆向工程生成工具的使用", 《CSDN:HTTPS://BLOG.CSDN.NET/QQ_34197553/ARTICLE/DETAILS/77745773》 *
李杉等: "Mybatis逆向工程在JavaEE中的应用", 《通讯世界》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111079188A (en) * 2019-12-27 2020-04-28 苏州海管家物流科技有限公司 mybatis field encryption and decryption device and encryption and decryption system

Also Published As

Publication number Publication date
CN108399081B (en) 2021-01-26

Similar Documents

Publication Publication Date Title
CN106572165A (en) Distributed global unique ID application method
CN100550020C (en) A kind of method and apparatus that is used to solve the Chinese software issue of supporting multilanguage
CN111651453B (en) User history behavior query method and device, electronic equipment and storage medium
CN103699638A (en) Method for realizing cross-database type synchronous data based on configuration parameters
CN101859303A (en) Metadata management method and management system
CN111125229A (en) Data blood margin generation method and device and electronic equipment
CN104021123A (en) Method and system for data transfer
CN105005592A (en) Data dictionary generation method and data dictionary generation device
CN110532358A (en) A kind of template automatic generation method towards knowledge base question and answer
CN106777258B (en) Coding and compressing method for Hbase row key in medical big data storage
CN106528896A (en) Database optimization method and apparatus
CN111858730A (en) Data importing and exporting device, method, equipment and medium of graph database
CN106095991B (en) A method of automatically generating the code from relevant database to MongoDB database data migration
CN105468793A (en) Automated management method for simulation model data
CN103778110A (en) Method and system for converting simplified Chinese characters into traditional Chinese characters
CN115617773A (en) Data migration method, device and system
CN102467496B (en) Method and device for converting stream mode typeset content into block mode typeset document
CN108399081A (en) A kind of MyBatis reverse-engineerings generator
CN111984745A (en) Dynamic expansion method, device, equipment and storage medium for database field
CN115080651A (en) Excel data import method and device, electronic equipment and storage medium
CN107273443B (en) Mixed indexing method based on metadata of big data model
CN105550176A (en) Basic mapping method for relational database and XML
Lanser Are We There Yet? The Intersectional Future of Feminist Narratology
CN102542363B (en) Business object generation method and device and ERP (Enterprise Resource Planning) system
CN113407657A (en) Data query method, device, equipment and storage medium based on single-level database

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 510660 No. 309, Huangpu Avenue, Tianhe District, Guangzhou City, Guangdong Province

Applicant after: Guangzhou onion Fashion Group Co.,Ltd.

Address before: 510660 No. 309, Huangpu Avenue, Tianhe District, Guangzhou City, Guangdong Province

Applicant before: DT GROUP TECHNOLOGY ECOMMERCE Co.,Ltd.

GR01 Patent grant
GR01 Patent grant