Satish Varma

Satish is post graduated in master of computer applications and experienced software engineer with focus on Spring, JPA, REST, TDD and web development. Follow him on LinkedIn or Twitter or Facebook

Updating an Entity to the Database using JPA with Hibernate

Updating an Entity : Once an entity in the database, Student student = entintyManager.find(Student.class, 1L); this line will retrieve student entity where identifier value is 1.The above line...

Retrieving or finding an Entity using JPA

Retrieving or Finding an Entity Once an entity in the database, Student student = entintyManager.find(Student.class, 1L); this line will retrieve student entity where identifier value is 1....

JPA Entity lifecycle – JPA developer should know

In this tutorial we are going to see about JPA Entity lifecycle and Instance state transitions. 1. Entity Instance states JPA defines four states and state...

How to persist an Entity in Database using JPA?

Table Structure in Database Technologies Used in example : JPA 2.1Hibernate 5.2.6MySql 8.0Maven 3Spring Tool Suite (STS) 3.9.8Java 1.8 Persistence.xml (Where Database configuration provided) <persistence-unit name="jbd-pu"> <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider> <properties> ...

JPA Architecture and java persistence with example

1. JPA Architecture : 1.1. Entity An entity is a persistence domain object. Each Entity represents a table in a relational database, and each entity instance corresponds...

What is JPA and Java Persistence API implementation?

What is JPA (Java persistence API)? : JPA (Java persistence API) is not a tool or not a framework, JPA is a specification...

JUnit 5 Tutorial

JUnit 5 is a opensource and next generation of JUnit for Java 8 and greater versions. In our JUnit 5 tutorials we have covered...

Stay in Touch