roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r572816 - /roller/branches/roller_4.1_dev/apps/weblogger/src/java/org/apache/roller/weblogger/business/jpa/JPAPersistenceStrategy.java
Date Tue, 04 Sep 2007 21:32:26 GMT
Author: snoopdave
Date: Tue Sep  4 14:32:25 2007
New Revision: 572816

URL: http://svn.apache.org/viewvc?rev=572816&view=rev
Log:
Allow other classes to get entity manager

Modified:
    roller/branches/roller_4.1_dev/apps/weblogger/src/java/org/apache/roller/weblogger/business/jpa/JPAPersistenceStrategy.java

Modified: roller/branches/roller_4.1_dev/apps/weblogger/src/java/org/apache/roller/weblogger/business/jpa/JPAPersistenceStrategy.java
URL: http://svn.apache.org/viewvc/roller/branches/roller_4.1_dev/apps/weblogger/src/java/org/apache/roller/weblogger/business/jpa/JPAPersistenceStrategy.java?rev=572816&r1=572815&r2=572816&view=diff
==============================================================================
--- roller/branches/roller_4.1_dev/apps/weblogger/src/java/org/apache/roller/weblogger/business/jpa/JPAPersistenceStrategy.java
(original)
+++ roller/branches/roller_4.1_dev/apps/weblogger/src/java/org/apache/roller/weblogger/business/jpa/JPAPersistenceStrategy.java
Tue Sep  4 14:32:25 2007
@@ -235,7 +235,7 @@
      * already active
      * @return the EntityManager
      */
-    private EntityManager getEntityManager(boolean isTransactionRequired) {
+    public EntityManager getEntityManager(boolean isTransactionRequired) {
         EntityManager em = getThreadLocalEntityManager();
         if (isTransactionRequired && !em.getTransaction().isActive()) {
             em.getTransaction().begin();



Mime
View raw message