logo

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.


comments powered by Disqus

rss

Free online Java web application examples

Want to develop whole web applications which use database, security and more? See my github account, where are lot's of example projects:
github

Search