First, lets overview what we need in order to setup Hibernate correctly.
@EnableTransactionManagement and @EnableJpaRepositories - we want transactional management and to use spring data repositories.
DataSource - main datasource for the application. using in-memory h2 for this example.
LocalCo...