Spring Framework DefaultPersistenceUnitManager - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework DefaultPersistenceUnitManager class.

This code example shows how to use the following methods:getDefaultDataSource, getDefaultJtaDataSource
		if (this.persistenceUnitInfo != null) { 
			return (this.persistenceUnitInfo.getJtaDataSource() != null ? 
					this.persistenceUnitInfo.getJtaDataSource() : 
					this.persistenceUnitInfo.getNonJtaDataSource()); 
		} 
		return (this.internalPersistenceUnitManager.getDefaultJtaDataSource() != null ? 
				this.internalPersistenceUnitManager.getDefaultJtaDataSource() : 
				this.internalPersistenceUnitManager.getDefaultDataSource()); 
	} 
 
} 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
See Code Examples for Spring Framework DefaultPersistenceUnitManager Methods: