Using @OneToMany annotation in JPA

Suppose, you are working on a project where the database has two tables, such as student and clazz, structured like below:

As you can see, the clazz table has columns id and name with the primary key id. Student table has columns id, name… Read More

Using @ManyToOne annotation in JPA

Annotation @ManyToOne in JPA is used to express multiple-to-one relationships between two tables in a database. There are many records in table A related to a record in table B. For example: many different students may have the same class. In this tutorial, we will… Read More

JPA and Spring framework

In JPA, the EntityManagerFactory object is an entity management object that manages the connection to the database. Using Spring to manage this object will help us a lot in developing Java applications that use JPA. In this tutorial, I will guide you on how to… Read More

Some important concepts of Docker

In this tutorial, I will talk about some important concepts of Docker that anyone, who wants to work with Docker, needs to know and distinguish them. These concepts include: Image Image is an immutable template that defines components, applications will be installed in a Docker… Read More