Using Java
Java Persistence Architecture (JPA) is the recommended persistence technology for complex object hierarchies in Java projects. Caché and Ensemble currently support JPA 1.0 and 2.0 via the Hibernate implementations of the JPA specifications. See “Using the Caché Hibernate Dialect” in Using Caché with JDBC.
Extreme Event Persistence (XEP) is the recommended persistence technology for high-performance simple to medium complexity object hierarchies in Java projects. See “Using XEP Event Persistence” in Using Java with Caché eXTreme.
Using Java provides an introduction to accessing Caché multivalue data from Java code. After completing this part of the tutorial, you will be able to:
-
Describe three different approaches to connecting Java and Caché.
-
Create two different types of database connections between Java code and Caché.
-
Create Java projections of Caché classes.
-
Use Java projections to read and update Caché data in a purely object-oriented fashion.
-
Use Java projections to execute Caché MVBasic routines.
-
Use JDBC to read and update Caché data in a relational fashion.
Note that all of the examples in this section of the tutorial demonstrate connecting Java code to a multivalue application that has been imported into Caché.