[jboss-cvs] JBoss Messaging SVN: r3990 - in branches/Branch_Hibernate_Persistence/src/main/org/jboss/messaging/jdbc/hb/pm/src/org/jboss/messaging/jdbc/hb: util and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Apr 2 12:26:16 EDT 2008


Author: bershath27
Date: 2008-04-02 12:26:16 -0400 (Wed, 02 Apr 2008)
New Revision: 3990

Added:
   branches/Branch_Hibernate_Persistence/src/main/org/jboss/messaging/jdbc/hb/pm/src/org/jboss/messaging/jdbc/hb/util/
   branches/Branch_Hibernate_Persistence/src/main/org/jboss/messaging/jdbc/hb/pm/src/org/jboss/messaging/jdbc/hb/util/JBMJDBCPersistenceUtil.java
Log:
Initial commit

Added: branches/Branch_Hibernate_Persistence/src/main/org/jboss/messaging/jdbc/hb/pm/src/org/jboss/messaging/jdbc/hb/util/JBMJDBCPersistenceUtil.java
===================================================================
--- branches/Branch_Hibernate_Persistence/src/main/org/jboss/messaging/jdbc/hb/pm/src/org/jboss/messaging/jdbc/hb/util/JBMJDBCPersistenceUtil.java	                        (rev 0)
+++ branches/Branch_Hibernate_Persistence/src/main/org/jboss/messaging/jdbc/hb/pm/src/org/jboss/messaging/jdbc/hb/util/JBMJDBCPersistenceUtil.java	2008-04-02 16:26:16 UTC (rev 3990)
@@ -0,0 +1,45 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.messaging.jdbc.hb.util;
+
+import javax.persistence.EntityManagerFactory;
+import javax.persistence.Persistence;
+
+/**
+ * JBMJDBCPersistenceUtil to map to JBM_MSG table 
+ *
+ * @author <a href="mailto:bershath at gmail.com">Tyronne Wickramarathne</a>
+ * @version $Revision: 1 $
+ */
+
+
+public class JBMJDBCPersistenceUtil {
+	private static EntityManagerFactory emf;
+	static {
+		emf = Persistence.createEntityManagerFactory("JBMJDBCEntityManager");
+	}
+	public static EntityManagerFactory getEmf() {
+		return emf;
+	}
+	
+}
+




More information about the jboss-cvs-commits mailing list