Apache OpenJPA is an implementation of the Jakarta Persistence standard for mapping application objects to relational databases. It can operate as an independent persistence layer in standalone applications or integrate with enterprise application servers and frameworks such as Spring.
The framework manages persistent entity lifecycles and translates application-level persistence operations into database statements. Developers can control how associated objects are retrieved, how changes are tracked and how database transactions are performed. OpenJPA also provides extensions beyond the standard persistence API, including facilities for distributing persistent objects across multiple physical databases through its Slice module.
This is free and open source software.
Key Features
- Entity mapping using annotations and XML metadata.
- Support for object inheritance, embedded objects and entity relationships.
- JPQL, Criteria API and native SQL queries.
- Bytecode enhancement of persistent entity classes.
- Configurable fetch plans and fetch groups.
- Data caching and query result caching.
- Automatic change tracking and transaction synchronisation.
- Optimistic and pessimistic locking.
- Database schema generation and mapping tools.
- Slice provides a virtual database abstraction over multiple physical databases.
- Custom distribution policies determine where newly persistent objects are stored.
- Parallel execution of database operations across configured slices.
- Merge distributed query results or restrict queries to selected slices.
- Support heterogeneous databases with independently configured JDBC connections.
- Distributed transactions across appropriately configured XA-capable database connections.
Website: openjpa.apache.org
Support:
Developer: Apache Software Foundation
License: Apache License 2.0
Apache OpenJPA is written in Java. Learn Java with our recommended free books and free tutorials.
Related Software
| Java Object-Relational Mapping Software | |
|---|---|
| Hibernate ORM | Idiomatic persistence for Java and relational databases |
| MyBatis | Persistence framework with custom SQL and stored procedures |
| Apache Cayenne | Provides object-relational mapping (ORM) and remoting services |
| jOOQ | jOOQ Object Oriented Querying |
| DataNucleus | Supports JDO and JPA API's for persistence |
| Apache OpenJPA | Java persistence project |
| Ebean | Designed to be simpler to use and understand than JPA or JDO products |
| Jimmer | Modern ORM for Java and Kotlin |
| EclipseLink | Persistence solution addressing relational, XML, and database web services |
| Persism | Lightweight, auto discovery, autoconfiguration ORM |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.