A
A
alekseylymarev2015-10-20 20:04:42
PostgreSQL
alekseylymarev, 2015-10-20 20:04:42

What's wrong with connecting to postgres via jpa?

I started developing a project to work with a database. I chose hibernate via jpa. When connected, it throws an exception Unable to build Unable to build entity manager factory. Tell me what to do!
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Viktor Maksimov, 2015-10-21
@alekseylymarev

This exception says that:
a) jpa.xml not found
b) hibernate.xml not found
c) Any error in POJO or DAO classes.
d) Strongly depends on the context, for example in spring it can also mean errors in the bean configuration.
I can say more if I see the full stack trace.

S
sderevyanko, 2015-10-22
@sderevyanko

For such questions, you need to attach a configuration. Show jpa config files.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question