Apache OJB

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
Apache ObJectRelationalBridge
DeveloperApache Software Foundation
Stable release
1.0.55 / December 31, 2005; 20 years ago (2005-12-31)
Repository
  • {{URL|example.com|optional display text}}Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
Written inJava
Engine
    Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
    Operating systemCross-platform
    TypeObject-relational mapping
    LicenseApache License 2.0
    Websitedb.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.[1]

    As of January 16, 2011 Apache ObJectRelationalBridge has been retired.[2]

    Features

    [edit | edit source]

    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

    [edit | edit source]

    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

    [edit | edit source]

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

    Allocation

    [edit | edit source]

    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

    [edit | edit source]

    Lua error in mw.title.lua at line 392: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').

    References

    [edit | edit source]
    1. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    2. ^ Apache ObJectRelationalBridge (OJB), Apache Software Foundation.
    [edit | edit source]