tutorial

Composite Identifier – Mapping of Derived Identities

Composite primary keys (Composite Identifier) typically used when mapping from legacy databases, where the primary key is comprised of several columns. In JPA, you have to make use of either of @EmbeddedId and @IdClass annotations to denote composite keys. Composite Identifiers are also known as Derived identities.

By |2019-09-12T10:11:06+00:00September 12th, 2019|Categories: Hibernate, JPA|Tags: , , , |

Advanced JPA Tutorial with Hibernate

This is an advanced JPA tutorial with hibernate 5.x. JPA stands for Java Persistence API. It is the official java specification to work with an ORM tool. Learn JPA 2.2 with Hibernate 5.x in the right way and with a lot of code examples. Prerequisites Programming knowledge in Java.Basic knowledge of JDBC programming.JDK 8 installed on your system.Apache Maven 3.3 [...]

By |2019-09-13T06:09:23+00:00August 27th, 2019|Categories: Hibernate, JPA|Tags: , , , |

Advanced Docker Tutorial

Advanced Docker tutorial is a complete docker tutorial with examples. This is a Zero to Hero series, to make you up and running with docker. I have created this tutorial to give you an in-depth understanding of docker and docker-compose. Docker provides a consistent way to develop, package, ship and run an application on almost any platform. You will learn [...]

By |2020-09-12T23:20:13+00:00August 26th, 2019|Categories: Docker|Tags: , , |

Advanced Maven Tutorial

Maven Tutorial - A complete tutorial with code examples. This tutorial is an advanced maven tutorial meant to make you a Hero in Apache maven. Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project’s build, reporting, and documentation from a central piece of information. [...]

By |2019-10-21T15:58:52+00:00August 25th, 2019|Categories: Maven|Tags: , , , |

Entity Mapping and Access Type in JPA

JPA must be annotated with @Entity and its id field should be annotated with @Id. There are several other optional annotations available, they will be discussed as part of Entity Mapping. JPA annotations can be placed on fields and/or on properties (getter/setter). You will learn Access Type in details in this section.

By |2019-08-24T10:42:32+00:00August 24th, 2019|Categories: Hibernate, JPA|Tags: , , , |

Different Entity states in JPA and Hibernate

n object that hibernate/JPA can persist in the database and retrieve it back whenever needed is called an Entity. JPA manages various states of these entities. There are 4 states of an Object in JPA and these are New (Transient), Persistent (Managed), Detached (Unmanaged) and Removed (deleted).

By |2019-08-24T06:41:44+00:00August 24th, 2019|Categories: Hibernate, JPA|Tags: , , , , |

Introduction to JPA and Hibernate

JPA - Java Persistence API is the official java specification to work with an ORM tool. Hibernate is the most popular ORM tool out there which implements the JPA standard. As of August 2019, JPA 2.2 is the latest specification standard, also known as JSR 338. In this introduction to JPA and Hibernate tutorial, you will learn their basics and advantages of using them.

By |2019-08-25T03:00:28+00:00August 24th, 2019|Categories: Hibernate, JPA|Tags: , , , , |
Go to Top