I'm trying to add Hibernate JPA to my webapp, and I am having two problems.
1) There's an error message by the @Entity annotation on the Person.class. It says, "The table Person cannot be resolved"
2) I can't create a SessionFactory in the TestEntityManager class, so my tests never run. An exception is thrown when the EntityManager is created, but the SessionFactory is null. I'm not sure if the EntityManager exception is related to the null SessionFactory.
Now for the second problem. I tried to make a Util class for creating the SessionFactory, but I'm not sure where I have gone wrong. Can you take a look at my configurations and tell me if they are correct? Do you thin the problem is in another class, or am I missing another class? thanks.
Here's the credentials that I used for logging into postgres
Test Class. This is where the sessionFactory is set to null
This is where I implement the SessionFactory
This is the output when i run the test class
Mo-om! You're embarassing me! Can you just read a tiny ad like a normal person?