Ojb
   HOME

TheInfoList



OR:

Apache ObJectRelationalBridge (OJB) is an Object/Relational mapping tool that allows transparent persistence for
Java Java is one of the Greater Sunda Islands in Indonesia. It is bordered by the Indian Ocean to the south and the Java Sea (a part of Pacific Ocean) to the north. With a population of 156.9 million people (including Madura) in mid 2024, proje ...
Objects against
relational database A relational database (RDB) is a database based on the relational model of data, as proposed by E. F. Codd in 1970. A Relational Database Management System (RDBMS) is a type of database management system that stores data in a structured for ...
s. It was released on April 6, 2005. As of January 16, 2011 Apache ObJectRelationalBridge has been retired.Apache ObJectRelationalBridge (OJB)
Apache Software Foundation.


Features

OJB is an ''
open source Open source is source code that is made freely available for possible modification and redistribution. Products include permission to use and view the source code, design documents, or content of the product. The open source model is a decentrali ...
'' project. It is lightweight and easy to use, requiring simply configure two files to implement a persistence layer. It is easy to integrate into an existing application because it does not generate code. It allows the use of different patterns of persistence: owner (PersistenceBroker
API An application programming interface (API) is a connection between computers or between computer programs. It is a type of software interface, offering a service to other pieces of software. A document or standard that describes how to build ...
), JDO and Object Data Management Group ( ODMG).


Functionality

OJB uses an
XML Extensible Markup Language (XML) is a markup language and file format for storing, transmitting, and reconstructing data. It defines a set of rules for encoding electronic document, documents in a format that is both human-readable and Machine-r ...
based Object/Relational mapping. The mapping resides in a dynamic
MetaData Metadata (or metainformation) is "data that provides information about other data", but not the content of the data itself, such as the text of a message or the image itself. There are many distinct types of metadata, including: * Descriptive ...
layer, which can be manipulated at runtime through a simple Meta-Object-Protocol (MOP) to change the behaviour of the
persistence Persistence or Persist may refer to: Math and computers * Image persistence, in LCD monitors * Persistence (computer science), the characteristic of data that outlives the execution of the program that created it * Persistence of a number, a ma ...
kernel.


Configuration

At least two files are required to configure OJB: OJB.properties and repository.xml


Allocation

For mapping a 1-1 relationship, for example, you have two tables: person and account. In this case, a person has an account and vice versa.


See also

*
Apache OpenJPA OpenJPA is an open source software, open source implementation of the Java Persistence API specification. It is an object-relational mapping (ORM) solution for the Java (programming language), Java language, which simplifies storing objects in dat ...


References


External links


Apache ObJectRelationalBridge
OJB Java enterprise platform Free software programmed in Java (programming language) Free web server software Cross-platform free software {{free-software-stub