Repository: deltaspike
Updated Branches:
  refs/heads/master 56d56989d -> 7594ba6e3


DELTASPIKE-1281 - Add JPA Expected attribute for BeanManager.


Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/7594ba6e
Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/7594ba6e
Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/7594ba6e

Branch: refs/heads/master
Commit: 7594ba6e36ccdf2bd0ea0e32926745b42c0eba63
Parents: 56d5698
Author: John D. Ament <johndam...@apache.org>
Authored: Sat Aug 12 17:51:54 2017 -0400
Committer: John D. Ament <johndam...@apache.org>
Committed: Sat Aug 12 17:51:54 2017 -0400

----------------------------------------------------------------------
 .../impl/entitymanager/PersistenceConfigurationProviderImpl.java | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/7594ba6e/deltaspike/modules/jpa/impl/src/main/java/org/apache/deltaspike/jpa/impl/entitymanager/PersistenceConfigurationProviderImpl.java
----------------------------------------------------------------------
diff --git 
a/deltaspike/modules/jpa/impl/src/main/java/org/apache/deltaspike/jpa/impl/entitymanager/PersistenceConfigurationProviderImpl.java
 
b/deltaspike/modules/jpa/impl/src/main/java/org/apache/deltaspike/jpa/impl/entitymanager/PersistenceConfigurationProviderImpl.java
index 8f97a90..6ef85d2 100644
--- 
a/deltaspike/modules/jpa/impl/src/main/java/org/apache/deltaspike/jpa/impl/entitymanager/PersistenceConfigurationProviderImpl.java
+++ 
b/deltaspike/modules/jpa/impl/src/main/java/org/apache/deltaspike/jpa/impl/entitymanager/PersistenceConfigurationProviderImpl.java
@@ -27,6 +27,7 @@ import java.util.Set;
 
 import org.apache.deltaspike.core.api.config.ConfigResolver;
 import org.apache.deltaspike.core.api.config.PropertyLoader;
+import org.apache.deltaspike.core.api.provider.BeanManagerProvider;
 import 
org.apache.deltaspike.jpa.spi.entitymanager.PersistenceConfigurationProvider;
 
 /**
@@ -65,6 +66,9 @@ public class PersistenceConfigurationProviderImpl implements 
PersistenceConfigur
 
         unitProperties = addConfigProperties(unitProperties, 
persistenceUnitName);
 
+        // add spec expected attributes
+        unitProperties.put("javax.persistence.bean.manager", 
BeanManagerProvider.getInstance().getBeanManager());
+
         return unitProperties;
     }
 

Reply via email to