Permalink
Browse files

Added code to differentiate EM Factories based on the name.

  • Loading branch information...
1 parent 7255479 commit d3fbcf25dbe0c54e6248179bac9767526f7b43a3 @dchenbecker dchenbecker committed Jun 16, 2009
Showing with 2 additions and 0 deletions.
  1. +2 −0 lift-jpa/src/main/scala/net/liftweb/jpa/RequestVarEM.scala
View
2 lift-jpa/src/main/scala/net/liftweb/jpa/RequestVarEM.scala
@@ -40,6 +40,8 @@ trait RequestVarEM extends ScalaEntityManager with ScalaEMFactory {
*/
object emVar extends RequestVar[EntityManager](openEM()) {
this.registerGlobalCleanupFunc(ignore => closeEM(this.is))
+
+ override def __nameSalt = getUnitName
}
// Must be provided to properly implement ScalaEntityManager

0 comments on commit d3fbcf2

Please sign in to comment.