2019-10-31 21:43:47 -04:00
|
|
|
=========
|
|
|
|
|
|
|
|
## Spring JPA Example Project
|
|
|
|
|
|
|
|
|
|
|
|
### Relevant Articles:
|
2020-02-18 06:42:05 -05:00
|
|
|
- [The DAO with JPA and Spring](https://www.baeldung.com/spring-dao-jpa)
|
|
|
|
- [JPA Pagination](https://www.baeldung.com/jpa-pagination)
|
|
|
|
- [Sorting with JPA](https://www.baeldung.com/jpa-sort)
|
|
|
|
- [Self-Contained Testing Using an In-Memory Database](https://www.baeldung.com/spring-jpa-test-in-memory-database)
|
|
|
|
- [A Guide to Spring AbstractRoutingDatasource](https://www.baeldung.com/spring-abstract-routing-data-source)
|
|
|
|
- [Obtaining Auto-generated Keys in Spring JDBC](https://www.baeldung.com/spring-jdbc-autogenerated-keys)
|
2020-04-21 02:15:57 -04:00
|
|
|
- [Transactions with Spring and JPA](https://www.baeldung.com/transaction-configuration-with-jpa-and-spring)
|
2019-10-31 21:43:47 -04:00
|
|
|
- [Use Criteria Queries in a Spring Data Application](https://www.baeldung.com/spring-data-criteria-queries)
|
|
|
|
- [Many-To-Many Relationship in JPA](https://www.baeldung.com/jpa-many-to-many)
|
|
|
|
|
|
|
|
|
|
|
|
### 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
|
|
|
|
|