Following an internet tutorial I have done the following:
I have created the database called test and the table called persona with SQL.
I have created a java Maven project, called HibernateExample1 with Netbeans 16 and JDK 19.

I have modified the pom.xml file to add dependencies. I have only added the ones highlighted in blue, the rest have been added by themselves by doing clean & build in the project.

I have created the persistence.xml file


I have created the file log4j2.xml

I have created the class Persona.java which has the same attributes as my SQL table.

And finally, I have created the class HolaMundoHibernate.java to run the program.

When I run the program I get the following error.

The structure of my project is as follows.
