ER-Based Object Definition for Foreign Key Attribute Mapping

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current methods for mapping table information and table association in databases require tedious manual coding or generate objects that do not meet practical development requirements, leading to increased costs, time, and inefficiencies in object generation.

Innovation Solution

A method and system for object definition based on entity-relationship (ER) information, which constructs objects by performing attribute definition operations on data structures using foreign keys, allowing users to add or replace attributes based on preset conditions and user selection, thereby simplifying and automating the object generation process.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Manufacturing precision

If manual coding is used to map table information to objects, then object definition precision can be controlled, but development time and cost increase significantly

Engineering Contradiction:
Improveobject definition precisionVSAvoiddevelopment time
Core Design Contradiction:
Manufacturing precisionVSLoss of time

Solution Approach 1:

The system enables self-service object generation by automatically extracting ER information from database tables and generating object definitions without requiring manual coding. The tool autonomously processes table structures, foreign key relationships, and associations to create accurate object models, thereby eliminating the time-consuming manual mapping process while maintaining definition precision.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The patent replaces the mechanical manual coding process with an automated computational system. Instead of developers manually writing code to map tables to objects, the system uses algorithmic processing to automatically generate object definitions by analyzing database schemas, thereby substituting human labor with automated intelligence.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

2Loss of time

If automatic code generation tools are used, then development time is reduced, but object quality does not meet practical requirements

Engineering Contradiction:
Improvedevelopment timeVSAvoidobject quality
Core Design Contradiction:
Loss of timeVSManufacturing precision

Solution Approach 1:

The system changes the parameters of automatic generation by introducing configurable options that allow users to specify the level of detail, included associations, and object structure requirements. This enables the tool to generate high-quality objects tailored to practical development needs rather than producing generic, low-quality code.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent incorporates feedback mechanisms where the system analyzes the generated objects and allows users to review and adjust the output. This iterative process ensures that the generated objects meet practical requirements by incorporating user feedback into the generation process.

Inventive Principle:
Principle #23Feedback

3Ease of operation

If simple automatic generation is used, then ease of operation is improved, but adaptability to complex business scenarios deteriorates

Engineering Contradiction:
Improveease of object generationVSAvoidadaptability to business scenarios
Core Design Contradiction:
Ease of operationVSAdaptability or versatility

Solution Approach 1:

The system provides dynamic configuration capabilities that allow users to adjust generation parameters based on specific business requirements. The tool can adapt its behavior dynamically to handle different table structures, relationship types, and business logic needs, making it versatile for complex scenarios while remaining easy to use through intuitive configuration interfaces.

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS20250363137A1Methods, systems, and storage media for object definition based on entity-relationship information
Publication Date: 2025.11.27 HANGZHOU YILINGERSI INFORMATION TECHNOLOGY CO LTD
  • US20250363137A1 patent drawing
  • US20250363137A1 patent drawing
  • US20250363137A1 patent drawing

AI summary

The present disclosure provides methods, systems, and storage media for object definition based on entity-relationship (ER) information. The method includes, in response to an object definition instruction input by a user, obtaining the ER information, wherein the ER information represents a relationship between a first object and a second object through a foreign key, and each of the first object and the second object is a data structure corresponding to a data table; performing an attribute definition operation on the first object to construct the first object including information of the second object, wherein the attribute definition operation includes: in response to determining that the foreign key satisfies a first preset condition, processing an attribute type of the first object or adding a new attribute of the first object.