Spring web app tutorial 8: persistence

How to integrate Hibernate with Spring and Spring Data JPA using LocalContainerEntityManagerFactoryBean? I will use test HSQL test database (later will be used PostgreSQL).

How to integrate Hibernate with Spring and Spring Data JPA using LocalContainerEntityManagerFactoryBean? I will use test HSQL test database (later will be used PostgreSQL).

In configuration I won't use  persistence.xml. The Hibernate will print SQL commands to standard output (using hibernate.show_sql) and the database will be created automatically from entities (using hibernate.hbm2ddl.auto). Plus hello world entity.