Jump to content

Apache OJB

From Alfawiki
Adapted from the English Wikipedia article Apache OJB, available under CC BY-SA 4.0Updated 9 August 2025
Apache ObJectRelationalBridge
Company typeOpen source software
IndustrySoftware development
FoundedApril 6, 2005; 21 years ago (2005-04-06)
DefunctJanuary 16, 2011 (2011-01-16)
ProductsObject/Relational mapping framework for Java
OwnerApache Software Foundation

Apache ObJectRelationalBridge (OJB) serves as an Object/Relational mapping framework that facilitates seamless persistence of Java objects within relational database systems. This tool, created by the Apache Software Foundation, was initially launched on April 6, 2005. It was officially discontinued on January 16, 2011.

Features

As an open source initiative, OJB is recognized for its minimalistic architecture and user-friendly implementation, requiring just two configuration files to establish a persistence layer. It integrates effortlessly with existing software without the necessity for code generation. The platform accommodates various persistence models such as the owner model (PersistenceBroker API), JDO, and Object Data Management Group (ODMG) standards.

Functionality

OJB utilizes an XML-driven Object/Relational mapping stored within a dynamic MetaData framework. This framework is accessible and modifiable at runtime through a straightforward Meta-Object-Protocol (MOP), providing adaptable management of the persistence engine’s operations.

Configuration

The system depends primarily on two configuration files: OJB.properties and repository.xml.

Allocation

For instance, when defining a one-to-one association between two entities—person and account—OJB effectively handles the bidirectional linkage between these tables.

See also

External links