Category: JPA 2

jpa embeddable annotation

Hello, In this article we will learn about jpa embeddable annotation. JPA embeddable annotation: This is what javadoc says about jpa embeddable annotation. Defines a class whose instances are stored as an intrinsic part of an owning entity and share…

JPA many to many mapping

Hello, In previous section we have seen about one to many mapping. This article will deal with jpa many to many mapping.   JPA Many to many mapping: Consider a scenario that employees can belong to multiple projects. i.e. Multiple…

JPA one to many mapping

Hello, Previously we have seen one to one mapping. This article will explain jpa one to many relationship. JPA one to many mapping: We have learned about many to one mapping. JPA one to many mapping is just the reverse…

JPA one to one mapping

Hello, continuing jpa association mappings as in previous article In this article we will learn about jpa one to one mapping. Introduction JPA one to one mapping is specified in cases where an entity is mapped to only one other…

JPA Many to One mapping

Hello all, we know that the one of the properties of JPA entities is that they can have relationships. They are related with each other using associations. In JPA, these associations are implemented using attribute mappings.This article will deal with…

JPA CRUD example

Hello all, In previous article we have learned about the jpa architecture. This article will focus on creating a simple JPA CRUD example. JPA CRUD example: 1. Create a JPA project. Create a JPA project in eclipse with the name…

jpa architecture

Hello all, In this section we will learn about the jpa architecture and major components of jpa framework. JPA Architecture: JPA architecture consists of EntityManager and EntityManagerFactory and Entity. We have seen entities in JPA in previous article . EntityManagerFactory: Responsible for…

Entities in JPA

Hello, We have seen how to create a JPA project in eclipse. In this article we will learn entities in jpa. Entities in JPA: According to the definition given in the book Mastering Java Persistence API by Apress, An entity…