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
Copy file name to clipboardExpand all lines: org.springframework.orm/src/main/java/org/springframework/orm/jpa/LocalContainerEntityManagerFactoryBean.java
+28-5Lines changed: 28 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -172,8 +172,10 @@ public void setMappingResources(String... mappingResources) {
172
172
* JDBC configuration in <code>persistence.xml</code>, passing in a Spring-managed
173
173
* DataSource instead.
174
174
* <p>In JPA speak, a DataSource passed in here will be used as "nonJtaDataSource"
175
-
* on the PersistenceUnitInfo passed to the PersistenceProvider, overriding
176
-
* data source configuration in <code>persistence.xml</code> (if any).
175
+
* on the PersistenceUnitInfo passed to the PersistenceProvider, as well as
176
+
* overriding data source configuration in <code>persistence.xml</code> (if any).
177
+
* Note that this variant typically works for JTA transaction management as well;
178
+
* if it does not, consider using the explicit {@link #setJtaDataSource} instead.
177
179
* <p><b>NOTE: Only applied if no external PersistenceUnitManager specified.</b>
Copy file name to clipboardExpand all lines: org.springframework.orm/src/main/java/org/springframework/orm/jpa/persistenceunit/DefaultPersistenceUnitManager.java
+33-9Lines changed: 33 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -117,6 +117,8 @@ public class DefaultPersistenceUnitManager
Copy file name to clipboardExpand all lines: org.springframework.orm/src/main/java/org/springframework/orm/jpa/persistenceunit/SmartPersistenceUnitInfo.java
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2002-2010 the original author or authors.
2
+
* Copyright 2002-2012 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -20,13 +20,13 @@
20
20
21
21
/**
22
22
* Extension of the standard JPA PersistenceUnitInfo interface, for advanced collaboration
23
-
* between Spring's {@link org.springframework.orm.jpa.LocalEntityManagerFactoryBean} and
24
-
* {@link PersistenceUnitManager} implementations.
23
+
* between Spring's {@link org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean}
24
+
* and {@link PersistenceUnitManager} implementations.
0 commit comments