2013-05-18 06:08:43 -04:00
|
|
|
|
=========
|
|
|
|
|
|
2013-07-14 07:03:04 -04:00
|
|
|
|
## Spring JPA Example Project
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Relevant Articles:
|
2013-05-31 16:18:53 -04:00
|
|
|
|
- [Spring 3 and JPA with Hibernate](http://www.baeldung.com/2011/12/13/the-persistence-layer-with-spring-3-1-and-jpa/)
|
2013-08-19 18:24:25 -04:00
|
|
|
|
- [Transactions with Spring 3 and JPA](http://www.baeldung.com/2011/12/26/transaction-configuration-with-jpa-and-spring-3-1/)
|
2014-03-20 15:59:42 -04:00
|
|
|
|
- [The DAO with JPA and Spring](http://www.baeldung.com/spring-dao-jpa)
|
2016-02-06 16:48:50 -05:00
|
|
|
|
- [JPA Pagination](http://www.baeldung.com/jpa-pagination)
|
2016-02-06 16:52:34 -05:00
|
|
|
|
- [Sorting with JPA](http://www.baeldung.com/jpa-sort)
|
2016-02-09 07:44:49 -05:00
|
|
|
|
- [Spring JPA – Multiple Databases](http://www.baeldung.com/spring-data-jpa-multiple-databases)
|
2016-10-04 04:59:44 -04:00
|
|
|
|
- [Hibernate Second-Level Cache](http://www.baeldung.com/hibernate-second-level-cache)
|
2016-10-04 05:32:01 -04:00
|
|
|
|
- [Spring, Hibernate and a JNDI Datasource](http://www.baeldung.com/spring-persistence-jpa-jndi-datasource)
|
2017-01-08 02:25:59 -05:00
|
|
|
|
- [Deleting Objects with Hibernate](http://www.baeldung.com/delete-with-hibernate)
|
2017-03-27 09:46:04 -04:00
|
|
|
|
- [Self-Contained Testing Using an In-Memory Database](http://www.baeldung.com/spring-jpa-test-in-memory-database)
|
2017-10-27 15:59:09 -04:00
|
|
|
|
- [Spring Data JPA – Adding a Method in All Repositories](http://www.baeldung.com/spring-data-jpa-method-in-all-repositories)
|
2017-12-12 01:32:35 -05:00
|
|
|
|
- [A Guide to Spring AbstractRoutingDatasource](http://www.baeldung.com/spring-abstract-routing-data-source)
|
2018-03-18 13:43:52 -04:00
|
|
|
|
- [Advanced Tagging Implementation with JPA] (http://www.baeldung.com/jpa-tagging-advanced)
|
2018-05-02 03:41:09 -04:00
|
|
|
|
- [A Guide to Hibernate with Spring 4](http://www.baeldung.com/the-persistence-layer-with-spring-and-jpa)
|
|
|
|
|
- [Testing REST with multiple MIME types](http://www.baeldung.com/testing-rest-api-with-multiple-media-types)
|
|
|
|
|
- [Obtaining Auto-generated Keys in Spring JDBC](http://www.baeldung.com/spring-jdbc-autogenerated-keys)
|
2018-05-03 09:44:44 -04:00
|
|
|
|
- [Transactions with Spring 4 and JPA](http://www.baeldung.com/transaction-configuration-with-jpa-and-spring)
|
2016-10-31 16:48:24 -04:00
|
|
|
|
|
2016-11-03 06:47:43 -04:00
|
|
|
|
### Eclipse Config
|
|
|
|
|
After importing the project into Eclipse, you may see the following error:
|
|
|
|
|
"No persistence xml file found in project"
|
|
|
|
|
|
|
|
|
|
This can be ignored:
|
|
|
|
|
- Project -> Properties -> Java Persistance -> JPA -> Error/Warnings -> Select Ignore on "No persistence xml file found in project"
|
|
|
|
|
Or:
|
|
|
|
|
- Eclipse -> Preferences - Validation - disable the "Build" execution of the JPA Validator
|
|
|
|
|
|