Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for dynamically creating data tables

A technology for dynamically creating and data tables, applied in the application field of the Hibernate platform, can solve the problems that the Hibernate platform cannot meet the data access of dynamic data tables and the color reduction of the Hibernate platform.

Inactive Publication Date: 2010-01-27
PEKING UNIV FOUNDER GRP CO LTD +1
View PDF2 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, in the process of users using the Hibernate platform, there is a common problem, that is, the access to each data table requires the creation of corresponding data tables, the creation of mapping files, and the creation of mapping classes during the development process. Create a series of work, so that the access to an existing data table under the Hibernate platform can be realized
However, actual enterprise applications often have business requirements that need to dynamically create data tables during system operation, and for such business requirements, the Hibernate platform cannot meet the data access to dynamic data tables, so that current enterprise applications are dealing with such Most of the problems are bypassing the Hibernate platform, and this will undoubtedly make the Hibernate platform less attractive in the process of using it.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for dynamically creating data tables
  • Method and system for dynamically creating data tables

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] The basic idea of ​​the present invention is: first determine the structure of the data table, and generate the XML description document containing the structure information of the data table; then, according to the XML description document, create the physical table structure of the data table, the mapping file, and the mapping class file, and compiling the mapping class file to obtain the javaclass file of the mapping class file.

[0031] Hereinafter, the implementation of the method and system for dynamically creating data tables based on Hibernate platform of the present invention will be described in detail in conjunction with the accompanying drawings through specific embodiments.

[0032] figure 1 For the present invention dynamically creates the method flow diagram based on Hibernate platform data table, as figure 1 As shown, the method includes:

[0033] Step 101: Determine the table structure information of the data table, and generate an XML description doc...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for dynamically creating data tables based on Hibernate platform. The method comprises: A, determining the structure of a data table and generating an XML description document containing the structure information of the data table; and B, creating the physical table structure of the data table according to the XML description document, generating a data-table mapping file and mapping-class files according to the XML description document and a corresponding conversion template, and compiling the mapping-class files to get java class files of the mapping-class files. The invention also discloses a system for dynamically creating data tables based on Hibernate platform. The method and the system can dynamically create and access Hibernate platform data tables.

Description

technical field [0001] The invention relates to the application field of the Hibernate platform, in particular to a method and a system for dynamically creating data tables based on the Hibernate platform. Background technique [0002] At present, in the field of enterprise application development using Java EE, a large number of people have adopted the Hibernate platform as a tool for enterprise applications to access enterprise data. [0003] Hibernate is an object-relational mapping (ORM) technology platform. The so-called ORM is to map the relational model (Relation) of the database into an object model (Object). By applying this technology, in the development process of enterprise applications, The user directly calls the object to perform object-oriented operations, but finally can realize the data access of the database. Because the Hibernate platform encapsulates the database access, it greatly simplifies the process of users accessing the database. Therefore, the H...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/44G06F9/445
Inventor 齐明
Owner PEKING UNIV FOUNDER GRP CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products