[jbosstools-commits] JBoss Tools SVN: r43525 - in workspace/akazakov/db/org.jboss.tools.cdi.db: src and 2 other directories.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Fri Sep 7 16:09:22 EDT 2012


Author: scabanovich
Date: 2012-09-07 16:09:22 -0400 (Fri, 07 Sep 2012)
New Revision: 43525

Added:
   workspace/akazakov/db/org.jboss.tools.cdi.db/src/META-INF/
   workspace/akazakov/db/org.jboss.tools.cdi.db/src/META-INF/persistence.xml
Removed:
   workspace/akazakov/db/org.jboss.tools.cdi.db/META-INF/persistence.xml
Modified:
   workspace/akazakov/db/org.jboss.tools.cdi.db/src/org/jboss/tools/cdi/db/CDIDataBase.java
Log:
JBIDE-12446
https://issues.jboss.org/browse/JBIDE-12446


Deleted: workspace/akazakov/db/org.jboss.tools.cdi.db/META-INF/persistence.xml
===================================================================
--- workspace/akazakov/db/org.jboss.tools.cdi.db/META-INF/persistence.xml	2012-09-07 19:56:13 UTC (rev 43524)
+++ workspace/akazakov/db/org.jboss.tools.cdi.db/META-INF/persistence.xml	2012-09-07 20:09:22 UTC (rev 43525)
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- Persistence deployment descriptor for dev profile -->
-<persistence xmlns="http://java.sun.com/xml/ns/persistence" 
-             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-             xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" 
-             version="2.0">
-
-   <persistence-unit name="orgJbossToolsCdiDbEntityManagerFactory" transaction-type="RESOURCE_LOCAL">
-      <provider>org.hibernate.ejb.HibernatePersistence</provider>
-      <!--jta-data-source>java:/orgJbossToolsCommonDbDatasource</jta-data-source-->
-      <properties>
-        <property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.ClientDriver"/>
-
-         <property name="hibernate.dialect" value="org.hibernate.dialect.DerbyDialect"/>
-         <!--property name="hibernate.hbm2ddl.auto" value="update"/-->
-         <property name="hibernate.hbm2ddl.auto" value="create">
-         <property name="hibernate.show_sql" value="true"/>
-         <property name="hibernate.format_sql" value="true"/>
-         <!--property name="jboss.entity.manager.factory.jndi.name" value="java:/orgJbossToolsCdiDbEntityManagerFactory"/-->
-      </properties>
-   </persistence-unit>
-
-</persistence>
\ No newline at end of file

Added: workspace/akazakov/db/org.jboss.tools.cdi.db/src/META-INF/persistence.xml
===================================================================
--- workspace/akazakov/db/org.jboss.tools.cdi.db/src/META-INF/persistence.xml	                        (rev 0)
+++ workspace/akazakov/db/org.jboss.tools.cdi.db/src/META-INF/persistence.xml	2012-09-07 20:09:22 UTC (rev 43525)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Persistence deployment descriptor for dev profile -->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence" 
+             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+             xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" 
+             version="2.0">
+
+   <persistence-unit name="orgJbossToolsCdiDbEntityManagerFactory" transaction-type="RESOURCE_LOCAL">
+      <provider>org.hibernate.ejb.HibernatePersistence</provider>
+      <!--jta-data-source>java:/orgJbossToolsCommonDbDatasource</jta-data-source-->
+      <properties>
+        <property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.ClientDriver"/>
+
+         <property name="hibernate.dialect" value="org.hibernate.dialect.DerbyDialect"/>
+         <!--property name="hibernate.hbm2ddl.auto" value="update"/-->
+         <property name="hibernate.hbm2ddl.auto" value="create"/>
+         <property name="hibernate.show_sql" value="true"/>
+         <property name="hibernate.format_sql" value="true"/>
+         <!--property name="jboss.entity.manager.factory.jndi.name" value="java:/orgJbossToolsCdiDbEntityManagerFactory"/-->
+      </properties>
+   </persistence-unit>
+
+</persistence>
\ No newline at end of file


Property changes on: workspace/akazakov/db/org.jboss.tools.cdi.db/src/META-INF/persistence.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Modified: workspace/akazakov/db/org.jboss.tools.cdi.db/src/org/jboss/tools/cdi/db/CDIDataBase.java
===================================================================
--- workspace/akazakov/db/org.jboss.tools.cdi.db/src/org/jboss/tools/cdi/db/CDIDataBase.java	2012-09-07 19:56:13 UTC (rev 43524)
+++ workspace/akazakov/db/org.jboss.tools.cdi.db/src/org/jboss/tools/cdi/db/CDIDataBase.java	2012-09-07 20:09:22 UTC (rev 43525)
@@ -36,6 +36,10 @@
 	private Map<String, Short> projects = new HashMap<String, Short>();
 	private short nextIndex = 0;
 
+	public CDIDataBase() {
+		CDIDBManager.getInstance().getEntityManager();
+	}
+
 	/*
 	 * (non-Javadoc)
 	 * @see org.jboss.tools.cdi.core.ICDICache#rebuild(org.jboss.tools.cdi.core.ICDIProject, java.util.Collection)



More information about the jbosstools-commits mailing list