public PersistenceUnitCommon setupConnection(PersistenceUnitCommon unit,
JPADataSource dataSource)
{
if (HibernateProvider.JPA_PROVIDER.equals(unit.getProvider()))
{
PropertyCommon property = unit.getOrCreateProperties()
.createProperty();
property.name(HIBERNATE_TRANSACTION_JTA_PLATFORM).value(WEBLOGIC_JTA_PLATFORM);
}
unit.transactionType("JTA");
unit.jtaDataSource(dataSource.getJndiDataSource());
unit.nonJtaDataSource(null);