You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The EntityManager interface does not implement AutoCloseable until
JPA 3.1.
This commit therefore partially reverts 189e1af so that the
example code compiles with the supported JPA version.
See spring-projectsgh-22269Closesspring-projectsgh-27886
Spring 5 supports JDK 8+, so it is much better to change the sample codes to Java 7 try-with-resources instead of old fashion style.
For example in 4.4.2. Implementing DAOs Based on JPA: EntityManagerFactory and EntityManager there exists following code
which could be replaced with
The same thing applies to OXM samples, and many more.
The text was updated successfully, but these errors were encountered: