Generated by
JDiff

org.springframework.orm.jpa Documentation Differences

This file contains all the changes in documentation in the package org.springframework.orm.jpa as colored differences. Deletions are shown like this, and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a <code> tag will cause all subsequent paragraphs to be displayed differently.

Class LocalContainerEntityManagerFactoryBean, void setDataSource(DataSource)

Specify the JDBC DataSource that the JPA persistence provider is supposed to use for accessing the database. This is an alternative to keeping the JDBC configuration in persistence.xml, passing in a Spring-managed DataSource instead.

In JPA speak, a DataSource passed in here will be used as "nonJtaDataSource" on the PersistenceUnitInfo passed to the PersistenceProvider, overriding as well as overriding data source configuration in persistence.xml (if any). Note that this variant typically works for JTA transaction management as well; if it does not, consider using the explicit .setJtaDataSource instead.

NOTE: Only applied if no external PersistenceUnitManager specified. @see javax.persistence.spi.PersistenceUnitInfo#getNonJtaDataSource() @see #setPersistenceUnitManager

Class LocalContainerEntityManagerFactoryBean, void setPersistenceUnitPostProcessors(PersistenceUnitPostProcessor[])

Set the PersistenceUnitPostProcessors to be applied to the PersistenceUnitInfo used for creating this EntityManagerFactory.

Such post-processors can, for example, register further entity classes and jar files, in addition to the metadata read in from persistence.xml.

NOTE: Only applied if no external PersistenceUnitManager specified. @see #setPersistenceUnitManager