All Posts

Introduction to Project Lombok

By |2019-09-18T05:54:15+00:00September 18th, 2019|Categories: Java™|Tags: , , |

Project Lombok is a Java library that automatically plugs into your editors like an eclipse or IntelliJ and builds tools and helps reduce the boilerplate code. In this tutorial, you will learn how Lombok help us to create getter, setters, toString, constructor, equals, hashCode methods, etc automatically. This article mainly includes information about Project Lombok and it's annotations with examples.

Composite Identifier – Mapping of Derived Identities

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

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.

Advanced JPA Tutorial with Hibernate

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

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 [...]

Advanced Docker Tutorial

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

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 [...]

Advanced Maven Tutorial

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

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. [...]

Entity Mapping and Access Type in JPA

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

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.

Different Entity states in JPA and Hibernate

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

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).

Go to Top