S
S
str8me2017-01-30 13:23:37
Hibernate
str8me, 2017-01-30 13:23:37

What settings to make in spring mvc to work with hibernate config from a separate file?

Hello.
Please tell me what needs to be added to the spring mvc configs in order to work with hibernate, the config of which will be in a separate file?
I don't like examples online. Some hardcoding. All the date of the source and so on are stupidly written in mvc-dispatcher-servlet.xml. Looks ugly. Maybe there are some best practices here?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Kosarev, 2017-01-31
@jaxtr

Best practice in the case of spring is to abandon the direct use of Hibernate in favor of Spring Data JPA.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question