Using Kundera with MongoDB

  • Deepak Vohra

Abstract

The Java Persistence API (JPA) is the Java API for persistence management and object/relational mapping in Java EE/Java SE environment with which a Java domain model is used to manage a relational database. JPA also provides a query language API with the Query interface for static and dynamic queries. JPA is designed primarily for relational databases, and Kundera is a JPA 2.0-compliant Object-Datastore Mapping library for NoSQL datastores. Kundera also supports relational databases and provides NoSQL datastore-specific configurations for MongoDB and some other NoSQL databases: Apache Cassandra, and HBase. Using the kundera-mongo library in the domain model MongoDB may be accessed using the JPA. In this chapter we shall access MongoDB with the kundera-mongo module and run CRUD (Create, Read, Update, and Delete) operations on MongoDB, covering the following topics:

Keywords

Configuration File NoSQL Database Delete Statement Query Instance Entity Instance 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Supplementary material

978-1-4842-1598-2_9_MOESM1_ESM.zip (27 kb)
Ch9 (zip 27 kb)

Copyright information

© Deepak Vohra 2015

Authors and Affiliations

  • Deepak Vohra
    • 1
  1. 1.BCCanada

Personalised recommendations