Unified O/R Mapping Metadata for CMP and JDO State Synchronization

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional systems separate Object/Relational (O/R) mapping metadata files for Container-Managed Persistence (CMP) entity beans and Java Data Objects (JDOs), preventing simultaneous mapping of both to a database.

Innovation Solution

A system and method that maps CMP persistent object states to JDO states using O/R processing module logic, which identifies CMP persistent object states and maps them to JDO states based on transactional context, utilizing a common O/R mapping metadata file for both CMP and JDOs.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If separate O/R mapping metadata files are used for CMP entity beans and JDOs, then each can be mapped independently to a database, but it prevents simultaneous mapping of both CMP and JDOs to a database and increases metadata complexity

Engineering Contradiction:
ImproveAbility to map both CMP and JDOs to databaseVSAvoidMetadata complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent combines separate O/R mapping metadata files for CMP entity beans and JDOs into a single unified metadata file. This unified file contains mapping information for both CMP persistent objects and JDOs, allowing both to be simultaneously mapped to the same database using a common configuration structure, thereby reducing metadata complexity while enabling dual mapping capability

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The unified O/R mapping metadata file serves multiple functions: it provides mapping configuration for both CMP entity beans and JDOs, supports transactional context awareness for state mapping, and enables both mapping approaches to coexist in a single database configuration. This multi-functional metadata structure eliminates the need for separate configuration files

Inventive Principle:
Principle #6Universality (Multi-functionality)

2Reliability

If CMP persistent object states are mapped to JDO states based on transactional context, then data integrity is improved, but the mapping logic complexity increases

Engineering Contradiction:
ImproveData integrityVSAvoidMapping logic complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent changes the state parameters of CMP persistent objects based on transactional context to match corresponding JDO states. The mapping logic monitors transactional context parameters (such as whether a transaction is active) and adjusts the state mapping accordingly, ensuring data integrity while using a systematic parameter-based approach rather than complex conditional logic

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS7716677B2System and method for mapping container managed persistence persistent object states to java data object states
Publication Date: 2010.05.11 SAP SE
  • US7716677B2 patent drawing
  • US7716677B2 patent drawing
  • US7716677B2 patent drawing

AI summary

A system and method for mapping Container Managed Persistence (CMP) persistent object states to Java Data Object (JDO) states. In an embodiment, mapping logic identifies a state of a CMP persistent object. The identified CMP persistent object state is mapped to a JDO state. In an embodiment, the mapping is based, at least in part, on whether the CMP persistent object is associated with a transactional context.