[jboss-cvs] jboss-seam/src/main/org/jboss/seam/core ...
Gavin King
gavin.king at jboss.com
Mon Mar 12 18:30:15 EDT 2007
User: gavin
Date: 07/03/12 18:30:15
Modified: src/main/org/jboss/seam/core EntityManagerFactory.java
Log:
minor
Revision Changes Path
1.6 +5 -2 jboss-seam/src/main/org/jboss/seam/core/EntityManagerFactory.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: EntityManagerFactory.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/core/EntityManagerFactory.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- EntityManagerFactory.java 21 Nov 2006 05:17:48 -0000 1.5
+++ EntityManagerFactory.java 12 Mar 2007 22:30:15 -0000 1.6
@@ -1,4 +1,4 @@
-//$Id: EntityManagerFactory.java,v 1.5 2006/11/21 05:17:48 gavin Exp $
+//$Id: EntityManagerFactory.java,v 1.6 2007/03/12 22:30:15 gavin Exp $
package org.jboss.seam.core;
import static org.jboss.seam.InterceptionType.NEVER;
@@ -78,8 +78,11 @@
@Destroy
public void shutdown()
{
+ if (entityManagerFactory!=null)
+ {
entityManagerFactory.close();
}
+ }
/**
* The persistence unit name
More information about the jboss-cvs-commits
mailing list