Apache OJB

{{Short description|Java software tool}}

{{redirect|OJB|other uses|Organization of the Jews in Bulgaria|and|Orthodox Jewish Bible}}

{{Infobox software

| name = Apache ObJectRelationalBridge

| logo =

| screenshot =

| caption =

| collapsible = yes

| developer = Apache Software Foundation

| latest release version = 1.0.55

| latest release date = {{Start date and age|2005|12|31}}

| latest preview version =

| latest preview date =

| operating system = Cross-platform

| programming language = Java

| genre = Object-relational mapping

| license = Apache License 2.0

| website = {{URL|https://db.apache.org/ojb/}}

}}

Apache ObJectRelationalBridge (OJB) is an Object/Relational mapping tool that allows transparent persistence for Java Objects against relational databases. It was released on April 6, 2005.{{Cite web |url=http://www.linuxtoday.com/developer/2005040602826NWSVDV |title=- Linux Today - Internetnews.com: Apache releases Object Relational Bridge |access-date=2011-05-07 |archive-date=2012-09-02 |archive-url=https://web.archive.org/web/20120902041816/http://www.linuxtoday.com/developer/2005040602826NWSVDV |url-status=dead }}

As of January 16, 2011 Apache ObJectRelationalBridge has been retired.[http://attic.apache.org/projects/ojb.html Apache ObJectRelationalBridge (OJB)], Apache Software Foundation.

Features

OJB is an open source 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), JDO and Object Data Management Group (ODMG).

Functionality

OJB uses an XML based Object/Relational mapping. The mapping resides in a dynamic MetaData layer, which can be manipulated at runtime through a simple Meta-Object-Protocol (MOP) to change the behaviour of the persistence 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

{{Portal|Free and open-source software}}

References

{{Reflist}}