Author: dgeraskov
Date: 2011-10-03 09:40:52 -0400 (Mon, 03 Oct 2011)
New Revision: 35280
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/.classpath
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/.project
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/.settings/
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/.settings/org.eclipse.jdt.core.prefs
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/META-INF/
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/META-INF/MANIFEST.MF
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/build.properties
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/annotations/
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/annotations/hibernate-jpa-2.0-api-1.0.0.Final.jar
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/annotations/hibernate-validator.jar
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/bsh-core-2.0b4.jar
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/antlr-2.7.6.jar
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/asm-attrs.jar
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/asm.jar
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/c3p0-0.9.1.jar
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/cglib-2.2.jar
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/commons-collections-3.1.jar
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/commons-logging-1.0.4.jar
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/concurrent-1.3.2.jar
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/connector.jar
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/dom4j-1.6.1.jar
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/ehcache-1.2.3.jar
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/hibernate3.jar
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/jaas.jar
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/javassist.jar
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/jboss-cache.jar
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/jboss-common.jar
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/jboss-jmx.jar
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/jboss-system.jar
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/jdbc2_0-stdext.jar
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/jgroups-2.2.8.jar
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/jta.jar
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/log4j-1.2.15.jar
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/oscache-2.1.jar
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/proxool-0.8.3.jar
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/slf4j-api-1.5.8.jar
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/slf4j-log4j12-1.5.8.jar
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/swarmcache-1.0rc2.jar
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/tools/
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/tools/freemarker.jar
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/tools/hibernate-tools.jar
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/tools/jtidy-r8-20060801.jar
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/src/
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/src/org/
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/src/org/hibernate/
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/src/org/hibernate/eclipse/
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/src/org/hibernate/eclipse/libs/
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/src/org/hibernate/eclipse/libs/HibernateLibsPlugin.java
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/.classpath
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/.project
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/.settings/
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/.settings/org.eclipse.jdt.core.prefs
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/META-INF/
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/META-INF/MANIFEST.MF
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/build.properties
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/plugin.xml
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/src/
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/src/org/
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/src/org/jboss/
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/src/org/jboss/tools/
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/src/org/jboss/tools/hibernate3_5/
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/src/org/jboss/tools/hibernate3_5/HibernateExtension3_5.java
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/src/org/jboss/tools/hibernate3_5/HibernateExtension3_5Plugin.java
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/.classpath
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/.project
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/.settings/
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/.settings/org.eclipse.jdt.core.prefs
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/META-INF/
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/META-INF/MANIFEST.MF
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/bin/
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/build.properties
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/jpa/
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/jpa/hibernate-entitymanager-4.0.0.CR3.jar
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/c3p0/
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/c3p0/c3p0-0.9.1.jar
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/c3p0/hibernate-c3p0-4.0.0.CR3.jar
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/ehcache/
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/ehcache/ehcache-core-2.4.3.jar
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/ehcache/hibernate-ehcache-4.0.0.CR3.jar
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/infinispan/
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/infinispan/hibernate-infinispan-4.0.0.CR3.jar
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/infinispan/i18nlog-1.0.10.jar
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/infinispan/infinispan-core-5.0.0.CR4.jar
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/infinispan/jboss-marshalling-1.3.0.CR9.jar
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/infinispan/jboss-marshalling-river-1.3.0.CR9.jar
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/infinispan/jboss-transaction-api-1.0.1.GA.jar
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/infinispan/jgroups-2.12.0.Final.jar
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/infinispan/rhq-pluginAnnotations-3.0.1.jar
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/proxool/
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/proxool/hibernate-proxool-4.0.0.CR3.jar
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/proxool/proxool-0.8.3.jar
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/required/
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/required/antlr-2.7.7.jar
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/required/classmate-0.5.4.jar
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/required/commons-collections-3.1.jar
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/required/dom4j-1.6.1.jar
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/required/hibernate-commons-annotations-4.0.0.CR2.jar
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/required/hibernate-core-4.0.0.CR3.jar
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/required/hibernate-jpa-2.0-api-1.0.1.Final.jar
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/required/jandex-1.0.3.Final.jar
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/required/javassist-3.12.0.GA.jar
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/required/jboss-logging-3.0.0.GA.jar
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/required/jta-1.1.jar
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/plugin.xml
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/src/
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/src/org/
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/ConfigurationFactory.java
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/FakeDelegatingDriver.java
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/HibernateExtension4_0.java
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/HibernateExtension4_0Plugin.java
Log:
Simultaneous Hibernate 3.5 and Hibernate4 support
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/.classpath
===================================================================
---
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/.classpath
(rev 0)
+++
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/.classpath 2011-10-03
13:40:52 UTC (rev 35280)
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con"
path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry exported="true" kind="lib"
path="lib/hibernate/asm.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/hibernate/asm-attrs.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/hibernate/dom4j-1.6.1.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/hibernate/commons-logging-1.0.4.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/hibernate/concurrent-1.3.2.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/hibernate/connector.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/annotations/hibernate-jpa-2.0-api-1.0.0.Final.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/hibernate/hibernate3.jar"
sourcepath="C:/dev/Libs/hibernate-distribution-3.5.6-Final/project"/>
+ <classpathentry exported="true" kind="lib"
path="lib/hibernate/jboss-cache.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/hibernate/jboss-common.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/hibernate/jboss-jmx.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/hibernate/jboss-system.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/hibernate/jdbc2_0-stdext.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/hibernate/jta.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/hibernate/jaas.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/hibernate/oscache-2.1.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/hibernate/proxool-0.8.3.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/hibernate/swarmcache-1.0rc2.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/tools/freemarker.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/tools/hibernate-tools.jar"
sourcepath="C:/dev/workspaces/RedHat/hibernate_trunk-orig/hibernateext.tools.trunk/src"/>
+ <classpathentry exported="true" kind="lib"
path="lib/bsh-core-2.0b4.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/hibernate/jgroups-2.2.8.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/hibernate/antlr-2.7.6.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/tools/jtidy-r8-20060801.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/hibernate/javassist.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/hibernate/ehcache-1.2.3.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/hibernate/c3p0-0.9.1.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/annotations/hibernate-validator.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/hibernate/log4j-1.2.15.jar" sourcepath="C:/Documents and
Settings/dgeraskov/.m2/repository/log4j/log4j/1.2.15/log4j-1.2.15-sources.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/hibernate/cglib-2.2.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/hibernate/commons-collections-3.1.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/hibernate/slf4j-api-1.5.8.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/hibernate/slf4j-log4j12-1.5.8.jar"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/.project
===================================================================
---
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/.project
(rev 0)
+++
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/.project 2011-10-03
13:40:52 UTC (rev 35280)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.hibernate.eclipse.libs</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/.settings/org.eclipse.jdt.core.prefs
===================================================================
---
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/.settings/org.eclipse.jdt.core.prefs
(rev 0)
+++
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/.settings/org.eclipse.jdt.core.prefs 2011-10-03
13:40:52 UTC (rev 35280)
@@ -0,0 +1,8 @@
+#Thu Sep 29 12:32:18 EEST 2011
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/META-INF/MANIFEST.MF
===================================================================
---
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/META-INF/MANIFEST.MF
(rev 0)
+++
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/META-INF/MANIFEST.MF 2011-10-03
13:40:52 UTC (rev 35280)
@@ -0,0 +1,504 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Libs
+Bundle-SymbolicName: org.hibernate.eclipse.libs
+Bundle-Version: 1.0.0.qualifier
+Bundle-ClassPath: .,
+ lib/hibernate/asm.jar,
+ lib/hibernate/asm-attrs.jar,
+ lib/hibernate/commons-logging-1.0.4.jar,
+ lib/hibernate/concurrent-1.3.2.jar,
+ lib/hibernate/connector.jar,
+ lib/hibernate/dom4j-1.6.1.jar,
+ lib/hibernate/hibernate3.jar,
+ lib/hibernate/jboss-cache.jar,
+ lib/hibernate/jboss-common.jar,
+ lib/hibernate/jboss-jmx.jar,
+ lib/hibernate/jboss-system.jar,
+ lib/hibernate/jdbc2_0-stdext.jar,
+ lib/hibernate/jta.jar,
+ lib/hibernate/jaas.jar,
+ lib/hibernate/oscache-2.1.jar,
+ lib/hibernate/proxool-0.8.3.jar,
+ lib/hibernate/swarmcache-1.0rc2.jar,
+ lib/tools/hibernate-tools.jar,
+ lib/tools/freemarker.jar,
+ lib/bsh-core-2.0b4.jar,
+ lib/hibernate/jgroups-2.2.8.jar,
+ lib/hibernate/antlr-2.7.6.jar,
+ lib/tools/jtidy-r8-20060801.jar,
+ lib/annotations/hibernate-jpa-2.0-api-1.0.0.Final.jar,
+ lib/hibernate/javassist.jar,
+ lib/hibernate/ehcache-1.2.3.jar,
+ lib/hibernate/c3p0-0.9.1.jar,
+ lib/annotations/hibernate-validator.jar,
+ lib/hibernate/log4j-1.2.15.jar,
+ lib/hibernate/cglib-2.2.jar,
+ lib/hibernate/commons-collections-3.1.jar,
+ lib/hibernate/slf4j-api-1.5.8.jar,
+ lib/hibernate/slf4j-log4j12-1.5.8.jar,
+ lib/hibernate/commons-collections-3.1.jar
+Bundle-Activator: org.hibernate.eclipse.libs.HibernateLibsPlugin
+Require-Bundle: org.eclipse.core.runtime
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Bundle-ActivationPolicy: lazy
+Export-Package: EDU.oswego.cs.dl.util.concurrent,
+ antlr,
+ antlr.ASdebug,
+ antlr.actions.cpp,
+ antlr.actions.csharp,
+ antlr.actions.java,
+ antlr.actions.python,
+ antlr.build,
+ antlr.collections,
+ antlr.collections.impl,
+ antlr.debug,
+ antlr.debug.misc,
+ antlr.preprocessor,
+ bsh,
+ com.mchange,
+ com.mchange.lang,
+ com.mchange.util,
+ com.mchange.v1,
+ com.mchange.v1.db,
+ com.mchange.v1.db.sql,
+ com.mchange.v1.identicator,
+ com.mchange.v1.io,
+ com.mchange.v1.lang,
+ com.mchange.v1.util,
+ com.mchange.v1.xml,
+ com.mchange.v2,
+ com.mchange.v2.async,
+ com.mchange.v2.beans,
+ com.mchange.v2.c3p0,
+ com.mchange.v2.c3p0.cfg,
+ com.mchange.v2.c3p0.filter,
+ com.mchange.v2.c3p0.impl,
+ com.mchange.v2.c3p0.jboss,
+ com.mchange.v2.c3p0.management,
+ com.mchange.v2.c3p0.mbean,
+ com.mchange.v2.c3p0.stmt,
+ com.mchange.v2.c3p0.subst,
+ com.mchange.v2.c3p0.util,
+ com.mchange.v2.cfg,
+ com.mchange.v2.cfg.junit,
+ com.mchange.v2.coalesce,
+ com.mchange.v2.codegen,
+ com.mchange.v2.codegen.bean,
+ com.mchange.v2.codegen.intfc,
+ com.mchange.v2.debug,
+ com.mchange.v2.encounter,
+ com.mchange.v2.holders,
+ com.mchange.v2.io,
+ com.mchange.v2.lang,
+ com.mchange.v2.log,
+ com.mchange.v2.log.jdk14logging,
+ com.mchange.v2.log.log4j,
+ com.mchange.v2.management,
+ com.mchange.v2.naming,
+ com.mchange.v2.resourcepool,
+ com.mchange.v2.ser,
+ com.mchange.v2.sql,
+ com.mchange.v2.sql.filter,
+ com.mchange.v2.util,
+ com.opensymphony.oscache.base,
+ com.opensymphony.oscache.base.algorithm,
+ com.opensymphony.oscache.base.events,
+ com.opensymphony.oscache.base.persistence,
+ com.opensymphony.oscache.extra,
+ com.opensymphony.oscache.general,
+ com.opensymphony.oscache.plugins.clustersupport,
+ com.opensymphony.oscache.plugins.diskpersistence,
+ com.opensymphony.oscache.util,
+ com.opensymphony.oscache.web,
+ com.opensymphony.oscache.web.filter,
+ com.opensymphony.oscache.web.tag,
+ com.sun.security.auth,
+ com.sun.security.auth.login,
+ dao,
+ doc,
+ doc.entities,
+ doc.tables,
+ dot,
+ dtd,
+ freemarker,
+ freemarker.cache,
+ freemarker.core,
+ freemarker.debug,
+ freemarker.debug.impl,
+ freemarker.ext.ant,
+ freemarker.ext.beans,
+ freemarker.ext.dom,
+ freemarker.ext.jdom,
+ freemarker.ext.jsp,
+ freemarker.ext.jython,
+ freemarker.ext.rhino,
+ freemarker.ext.servlet,
+ freemarker.ext.util,
+ freemarker.ext.xml,
+ freemarker.log,
+ freemarker.template,
+ freemarker.template.utility,
+ hbm,
+ javassist,
+ javassist.bytecode,
+ javassist.bytecode.analysis,
+ javassist.bytecode.annotation,
+ javassist.bytecode.stackmap,
+ javassist.compiler,
+ javassist.compiler.ast,
+ javassist.convert,
+ javassist.expr,
+ javassist.runtime,
+ javassist.scopedpool,
+ javassist.tools,
+ javassist.tools.reflect,
+ javassist.tools.rmi,
+ javassist.tools.web,
+ javassist.util,
+ javassist.util.proxy,
+ javax.management,
+ javax.management.loading,
+ javax.management.modelmbean,
+ javax.management.monitor,
+ javax.management.openmbean,
+ javax.management.relation,
+ javax.management.timer,
+ javax.persistence,
+ javax.persistence.spi,
+ javax.resource,
+ javax.resource.cci,
+ javax.resource.spi,
+ javax.resource.spi.security,
+ javax.security.auth,
+ javax.security.auth.callback,
+ javax.security.auth.login,
+ javax.security.auth.spi,
+ javax.sql,
+ javax.transaction,
+ javax.transaction.xa,
+ lint,
+ net.sf.cglib.beans,
+ net.sf.cglib.core,
+ net.sf.cglib.proxy,
+ net.sf.cglib.reflect,
+ net.sf.cglib.transform,
+ net.sf.cglib.transform.impl,
+ net.sf.cglib.util,
+ net.sf.ehcache,
+ net.sf.ehcache.bootstrap,
+ net.sf.ehcache.config,
+ net.sf.ehcache.constructs.asynchronous,
+ net.sf.ehcache.constructs.blocking,
+ net.sf.ehcache.constructs.concurrent,
+ net.sf.ehcache.constructs.web,
+ net.sf.ehcache.constructs.web.filter,
+ net.sf.ehcache.distribution,
+ net.sf.ehcache.event,
+ net.sf.ehcache.hibernate,
+ net.sf.ehcache.store,
+ net.sf.ehcache.util,
+ net.sf.swarmcache,
+ org.apache.commons.collections,
+ org.apache.commons.collections.bag,
+ org.apache.commons.collections.bidimap,
+ org.apache.commons.collections.buffer,
+ org.apache.commons.collections.collection,
+ org.apache.commons.collections.comparators,
+ org.apache.commons.collections.functors,
+ org.apache.commons.collections.iterators,
+ org.apache.commons.collections.keyvalue,
+ org.apache.commons.collections.list,
+ org.apache.commons.collections.map,
+ org.apache.commons.collections.set,
+ org.apache.commons.logging,
+ org.apache.commons.logging.impl,
+ org.apache.log4j,
+ org.apache.log4j.chainsaw,
+ org.apache.log4j.config,
+ org.apache.log4j.helpers,
+ org.apache.log4j.jdbc,
+ org.apache.log4j.jmx,
+ org.apache.log4j.lf5,
+ org.apache.log4j.lf5.config,
+ org.apache.log4j.lf5.util,
+ org.apache.log4j.lf5.viewer,
+ org.apache.log4j.lf5.viewer.categoryexplorer,
+ org.apache.log4j.lf5.viewer.configure,
+ org.apache.log4j.lf5.viewer.images,
+
org.apache.log4j.net,
+ org.apache.log4j.nt,
+ org.apache.log4j.or,
+ org.apache.log4j.or.jms,
+ org.apache.log4j.or.sax,
+ org.apache.log4j.spi,
+ org.apache.log4j.varia,
+ org.apache.log4j.xml,
+ org.apache.xerces.impl.xs,
+ org.dom4j,
+ org.dom4j.bean,
+ org.dom4j.datatype,
+ org.dom4j.dom,
+ org.dom4j.dtd,
+ org.dom4j.io,
+ org.dom4j.jaxb,
+ org.dom4j.rule,
+ org.dom4j.rule.pattern,
+ org.dom4j.swing,
+ org.dom4j.tree,
+ org.dom4j.util,
+ org.dom4j.xpath,
+ org.dom4j.xpp,
+ org.hibernate,
+ org.hibernate.action,
+ org.hibernate.annotations,
+ org.hibernate.annotations.common,
+ org.hibernate.annotations.common.annotationfactory,
+ org.hibernate.annotations.common.reflection,
+ org.hibernate.annotations.common.reflection.java,
+ org.hibernate.annotations.common.reflection.java.generics,
+ org.hibernate.annotations.common.util,
+ org.hibernate.bytecode,
+ org.hibernate.bytecode.buildtime,
+ org.hibernate.bytecode.cglib,
+ org.hibernate.bytecode.javassist,
+ org.hibernate.bytecode.util,
+ org.hibernate.cache,
+ org.hibernate.cache.access,
+ org.hibernate.cache.entry,
+ org.hibernate.cache.impl,
+ org.hibernate.cache.impl.bridge,
+ org.hibernate.cfg,
+ org.hibernate.cfg.annotations,
+ org.hibernate.cfg.annotations.reflection,
+ org.hibernate.cfg.reveng,
+ org.hibernate.cfg.reveng.dialect,
+ org.hibernate.cfg.search,
+ org.hibernate.classic,
+ org.hibernate.collection,
+ org.hibernate.connection,
+ org.hibernate.context,
+ org.hibernate.criterion,
+ org.hibernate.dialect,
+ org.hibernate.dialect.function,
+ org.hibernate.dialect.lock,
+ org.hibernate.dialect.resolver,
+ org.hibernate.eclipse.libs,
+ org.hibernate.ejb,
+ org.hibernate.ejb.connection,
+ org.hibernate.ejb.event,
+ org.hibernate.ejb.instrument,
+ org.hibernate.ejb.packaging,
+ org.hibernate.ejb.transaction,
+ org.hibernate.ejb.util,
+ org.hibernate.engine,
+ org.hibernate.engine.loading,
+ org.hibernate.engine.query,
+ org.hibernate.engine.query.sql,
+ org.hibernate.engine.transaction,
+ org.hibernate.event,
+ org.hibernate.event.def,
+ org.hibernate.exception,
+ org.hibernate.hql,
+ org.hibernate.hql.antlr,
+ org.hibernate.hql.ast,
+ org.hibernate.hql.ast.exec,
+ org.hibernate.hql.ast.tree,
+ org.hibernate.hql.ast.util,
+ org.hibernate.hql.classic,
+ org.hibernate.id,
+ org.hibernate.id.enhanced,
+ org.hibernate.id.insert,
+ org.hibernate.impl,
+ org.hibernate.intercept,
+ org.hibernate.intercept.cglib,
+ org.hibernate.intercept.javassist,
+ org.hibernate.jdbc,
+ org.hibernate.jdbc.util,
+ org.hibernate.jmx,
+ org.hibernate.loader,
+ org.hibernate.loader.collection,
+ org.hibernate.loader.criteria,
+ org.hibernate.loader.custom,
+ org.hibernate.loader.custom.sql,
+ org.hibernate.loader.entity,
+ org.hibernate.loader.hql,
+ org.hibernate.lob,
+ org.hibernate.mapping,
+ org.hibernate.metadata,
+ org.hibernate.param,
+ org.hibernate.persister,
+ org.hibernate.persister.collection,
+ org.hibernate.persister.entity,
+ org.hibernate.pretty,
+ org.hibernate.property,
+ org.hibernate.proxy,
+ org.hibernate.proxy.dom4j,
+ org.hibernate.proxy.map,
+ org.hibernate.proxy.pojo,
+ org.hibernate.proxy.pojo.cglib,
+ org.hibernate.proxy.pojo.javassist,
+ org.hibernate.secure,
+ org.hibernate.sql,
+ org.hibernate.stat,
+ org.hibernate.tool,
+ org.hibernate.tool.ant,
+ org.hibernate.tool.hbm2ddl,
+ org.hibernate.tool.hbm2x,
+ org.hibernate.tool.hbm2x.doc,
+ org.hibernate.tool.hbm2x.pojo,
+ org.hibernate.tool.hbm2x.visitor,
+ org.hibernate.tool.hbmlint,
+ org.hibernate.tool.hbmlint.detector,
+ org.hibernate.tool.ide.completion,
+ org.hibernate.tool.ide.formatting,
+ org.hibernate.tool.instrument,
+ org.hibernate.tool.instrument.cglib,
+ org.hibernate.tool.instrument.javassist,
+ org.hibernate.tool.stat,
+ org.hibernate.transaction,
+ org.hibernate.transform,
+ org.hibernate.tuple,
+ org.hibernate.tuple.component,
+ org.hibernate.tuple.entity,
+ org.hibernate.type,
+ org.hibernate.usertype,
+ org.hibernate.util,
+ org.hibernate.validator,
+ org.hibernate.validator.event,
+ org.hibernate.validator.interpolator,
+ org.hibernate.validator.resources,
+ org.jboss,
+ org.jboss.cache,
+ org.jboss.cache.aop,
+ org.jboss.cache.aop.annotation,
+ org.jboss.cache.aop.collection,
+ org.jboss.cache.aop.eviction,
+ org.jboss.cache.aop.interceptors,
+ org.jboss.cache.aop.references,
+ org.jboss.cache.aop.util,
+ org.jboss.cache.buddyreplication,
+ org.jboss.cache.config,
+ org.jboss.cache.eviction,
+ org.jboss.cache.factories,
+ org.jboss.cache.interceptors,
+ org.jboss.cache.loader,
+ org.jboss.cache.loader.bdbje,
+ org.jboss.cache.loader.jdbm,
+ org.jboss.cache.loader.rmi,
+ org.jboss.cache.loader.tcp,
+ org.jboss.cache.lock,
+ org.jboss.cache.marshall,
+ org.jboss.cache.optimistic,
+ org.jboss.cache.rpc,
+ org.jboss.cache.statetransfer,
+ org.jboss.cache.transaction,
+ org.jboss.cache.util,
+ org.jboss.cache.xml,
+ org.jboss.deployment,
+ org.jboss.deployment.cache,
+ org.jboss.deployment.scanner,
+ org.jboss.logging,
+ org.jboss.logging.appender,
+ org.jboss.logging.filter,
+ org.jboss.logging.layout,
+ org.jboss.logging.util,
+ org.jboss.mx.capability,
+ org.jboss.mx.interceptor,
+ org.jboss.mx.loading,
+ org.jboss.mx.metadata,
+ org.jboss.mx.modelmbean,
+ org.jboss.mx.notification,
+ org.jboss.mx.persistence,
+ org.jboss.mx.server,
+ org.jboss.mx.server.registry,
+ org.jboss.mx.service,
+ org.jboss.mx.util,
+ org.jboss.mx.util.propertyeditor,
+ org.jboss.net.protocol,
+ org.jboss.net.protocol.file,
+ org.jboss.net.protocol.http,
+ org.jboss.net.protocol.njar,
+ org.jboss.net.protocol.resource,
+ org.jboss.net.sockets,
+ org.jboss.net.ssl,
+ org.jboss.system,
+ org.jboss.system.pm,
+ org.jboss.system.server,
+ org.jboss.util,
+ org.jboss.util.coerce,
+ org.jboss.util.collection,
+ org.jboss.util.deadlock,
+ org.jboss.util.file,
+ org.jboss.util.id,
+ org.jboss.util.loading,
+ org.jboss.util.platform,
+ org.jboss.util.property,
+ org.jboss.util.property.jmx,
+ org.jboss.util.propertyeditor,
+ org.jboss.util.state,
+ org.jboss.util.state.xml,
+ org.jboss.util.stream,
+ org.jboss.util.threadpool,
+ org.jboss.util.timeout,
+ org.jboss.util.xml,
+ org.jboss.xml,
+ org.jboss.xml.binding,
+ org.jboss.xml.binding.metadata,
+ org.jboss.xml.binding.metadata.marshalling,
+ org.jboss.xml.binding.metadata.unmarshalling,
+ org.jboss.xml.binding.metadata.unmarshalling.impl,
+ org.jboss.xml.binding.parser,
+ org.jboss.xml.binding.parser.sax,
+ org.jboss.xml.binding.parser.xni,
+ org.jgroups,
+ org.jgroups.blocks,
+ org.jgroups.conf,
+ org.jgroups.debug,
+ org.jgroups.demos,
+ org.jgroups.demos.applets,
+ org.jgroups.demos.wb,
+ org.jgroups.persistence,
+ org.jgroups.protocols,
+ org.jgroups.protocols.pbcast,
+ org.jgroups.protocols.ring,
+ org.jgroups.service,
+ org.jgroups.service.lease,
+ org.jgroups.stack,
+ org.jgroups.tests,
+ org.jgroups.tests.adapt,
+ org.jgroups.tests.adaptjms,
+ org.jgroups.tests.adapttcp,
+ org.jgroups.tests.adaptudp,
+ org.jgroups.tests.perf,
+ org.jgroups.tests.perf.transports,
+ org.jgroups.tests.stack,
+ org.jgroups.util,
+ org.logicalcobwebs.asm,
+ org.logicalcobwebs.asm.tree,
+ org.logicalcobwebs.asm.util,
+ org.logicalcobwebs.cglib.core,
+ org.logicalcobwebs.cglib.proxy,
+ org.logicalcobwebs.cglib.reflect,
+ org.logicalcobwebs.cglib.util,
+ org.logicalcobwebs.concurrent,
+ org.logicalcobwebs.logging,
+ org.logicalcobwebs.logging.impl,
+ org.logicalcobwebs.proxool,
+ org.logicalcobwebs.proxool.admin,
+ org.logicalcobwebs.proxool.admin.jmx,
+ org.logicalcobwebs.proxool.admin.servlet,
+ org.logicalcobwebs.proxool.configuration,
+ org.logicalcobwebs.proxool.resources,
+ org.logicalcobwebs.proxool.util,
+ org.objectweb.asm,
+ org.objectweb.asm.attrs,
+ org.objectweb.asm.signature,
+ org.slf4j,
+ org.slf4j.helpers,
+ org.slf4j.impl,
+ org.slf4j.spi,
+ org.w3c.tidy,
+ org.w3c.tidy.ant,
+ pojo
+
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/build.properties
===================================================================
---
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/build.properties
(rev 0)
+++
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/build.properties 2011-10-03
13:40:52 UTC (rev 35280)
@@ -0,0 +1,5 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ lib/
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/annotations/hibernate-jpa-2.0-api-1.0.0.Final.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/annotations/hibernate-jpa-2.0-api-1.0.0.Final.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/annotations/hibernate-validator.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/annotations/hibernate-validator.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/bsh-core-2.0b4.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/bsh-core-2.0b4.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/antlr-2.7.6.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/antlr-2.7.6.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/asm-attrs.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/asm-attrs.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/asm.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/asm.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/c3p0-0.9.1.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/c3p0-0.9.1.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/cglib-2.2.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/cglib-2.2.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/commons-collections-3.1.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/commons-collections-3.1.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/commons-logging-1.0.4.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/commons-logging-1.0.4.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/concurrent-1.3.2.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/concurrent-1.3.2.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/connector.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/connector.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/dom4j-1.6.1.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/dom4j-1.6.1.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/ehcache-1.2.3.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/ehcache-1.2.3.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/hibernate3.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/hibernate3.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/jaas.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/jaas.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/javassist.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/javassist.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/jboss-cache.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/jboss-cache.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/jboss-common.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/jboss-common.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/jboss-jmx.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/jboss-jmx.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/jboss-system.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/jboss-system.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/jdbc2_0-stdext.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/jdbc2_0-stdext.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/jgroups-2.2.8.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/jgroups-2.2.8.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/jta.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/jta.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/log4j-1.2.15.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/log4j-1.2.15.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/oscache-2.1.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/oscache-2.1.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/proxool-0.8.3.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/proxool-0.8.3.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/slf4j-api-1.5.8.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/slf4j-api-1.5.8.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/slf4j-log4j12-1.5.8.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/slf4j-log4j12-1.5.8.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/swarmcache-1.0rc2.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/hibernate/swarmcache-1.0rc2.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/tools/freemarker.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/tools/freemarker.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/tools/hibernate-tools.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/tools/hibernate-tools.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/tools/jtidy-r8-20060801.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/lib/tools/jtidy-r8-20060801.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/src/org/hibernate/eclipse/libs/HibernateLibsPlugin.java
===================================================================
---
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/src/org/hibernate/eclipse/libs/HibernateLibsPlugin.java
(rev 0)
+++
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.libs/src/org/hibernate/eclipse/libs/HibernateLibsPlugin.java 2011-10-03
13:40:52 UTC (rev 35280)
@@ -0,0 +1,30 @@
+package org.hibernate.eclipse.libs;
+
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+
+public class HibernateLibsPlugin implements BundleActivator {
+
+ private static BundleContext context;
+
+ static BundleContext getContext() {
+ return context;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext bundleContext) throws Exception {
+ HibernateLibsPlugin.context = bundleContext;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext bundleContext) throws Exception {
+ HibernateLibsPlugin.context = null;
+ }
+
+}
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/.classpath
===================================================================
---
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/.classpath
(rev 0)
+++
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/.classpath 2011-10-03
13:40:52 UTC (rev 35280)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con"
path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/.project
===================================================================
---
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/.project
(rev 0)
+++
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/.project 2011-10-03
13:40:52 UTC (rev 35280)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.hibernate3_5</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/.settings/org.eclipse.jdt.core.prefs
===================================================================
---
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/.settings/org.eclipse.jdt.core.prefs
(rev 0)
+++
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/.settings/org.eclipse.jdt.core.prefs 2011-10-03
13:40:52 UTC (rev 35280)
@@ -0,0 +1,8 @@
+#Mon Sep 26 12:36:48 EEST 2011
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/META-INF/MANIFEST.MF
===================================================================
---
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/META-INF/MANIFEST.MF
(rev 0)
+++
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/META-INF/MANIFEST.MF 2011-10-03
13:40:52 UTC (rev 35280)
@@ -0,0 +1,12 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: HibernateExtension3_5
+Bundle-SymbolicName: org.jboss.tools.hibernateextension3_5;singleton:=true
+Bundle-Version: 1.0.0.qualifier
+Bundle-Activator: org.jboss.tools.hibernate3_5.HibernateExtension3_5Plugin
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.hibernate.eclipse;bundle-version="3.4.0",
+ org.hibernate.eclipse.libs;bundle-version="1.0.0"
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/build.properties
===================================================================
---
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/build.properties
(rev 0)
+++
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/build.properties 2011-10-03
13:40:52 UTC (rev 35280)
@@ -0,0 +1,3 @@
+output.. = bin/
+bin.includes = META-INF/,\
+ plugin.xml
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/plugin.xml
===================================================================
---
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/plugin.xml
(rev 0)
+++
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/plugin.xml 2011-10-03
13:40:52 UTC (rev 35280)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension
+ point="org.hibernate.eclipse.hibernateextension">
+ <hibernateextension
+ classname="org.jboss.tools.hibernate3_5.HibernateExtension3_5"
+ version="3.5">
+ </hibernateextension>
+ </extension>
+
+</plugin>
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/src/org/jboss/tools/hibernate3_5/HibernateExtension3_5.java
===================================================================
---
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/src/org/jboss/tools/hibernate3_5/HibernateExtension3_5.java
(rev 0)
+++
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/src/org/jboss/tools/hibernate3_5/HibernateExtension3_5.java 2011-10-03
13:40:52 UTC (rev 35280)
@@ -0,0 +1,307 @@
+package org.jboss.tools.hibernate3_5;
+
+import java.net.URL;
+import java.security.AccessController;
+import java.security.PrivilegedAction;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+
+import org.eclipse.osgi.util.NLS;
+import org.hibernate.Query;
+import org.hibernate.Session;
+import org.hibernate.SessionFactory;
+import org.hibernate.cfg.Configuration;
+import org.hibernate.console.ConfigurationFactory;
+import org.hibernate.console.ConsoleConfigClassLoader;
+import org.hibernate.console.ConsoleMessages;
+import org.hibernate.console.ConsoleQueryParameter;
+import org.hibernate.console.FakeDelegatingDriver;
+import org.hibernate.console.QueryInputModel;
+import org.hibernate.console.execution.DefaultExecutionContext;
+import org.hibernate.console.execution.ExecutionContext;
+import org.hibernate.console.execution.ExecutionContext.Command;
+import org.hibernate.console.ext.HibernateException;
+import org.hibernate.console.ext.HibernateExtension;
+import org.hibernate.console.ext.QueryResult;
+import org.hibernate.console.ext.QueryResultImpl;
+import org.hibernate.console.preferences.ConsoleConfigurationPreferences;
+import org.hibernate.console.preferences.PreferencesClassPathUtils;
+import org.hibernate.type.Type;
+
+public class HibernateExtension3_5 implements HibernateExtension {
+
+ private ConsoleConfigClassLoader classLoader = null;
+
+ private ExecutionContext executionContext;
+
+ private ConsoleConfigurationPreferences prefs;
+
+ private Configuration configuration;
+
+ private SessionFactory sessionFactory;
+
+ public HibernateExtension3_5() {
+ }
+
+ @Override
+ public String getHibernateVersion() {
+ return "3.5";
+ }
+
+ @Override
+ public QueryResult executeHQLQuery(final String hql,
+ final QueryInputModel queryParameters) {
+ System.out.println("Execute HQLQuery in " + getClass().getName());
+ Session session = sessionFactory.openSession();
+ Query query = session.createQuery(hql);
+ List<Object> list = Collections.emptyList();
+ long queryTime = 0;
+ try {
+ list = new ArrayList<Object>();
+ setupParameters(query, queryParameters);
+ long startTime = System.currentTimeMillis();
+ Iterator<?> iter = query.list().iterator(); // need to be user-controllable to
toggle between iterate, scroll etc.
+ queryTime = System.currentTimeMillis() - startTime;
+ while (iter.hasNext() ) {
+ Object element = iter.next();
+ list.add(element);
+ }
+ }
+ catch (HibernateException e) {
+ e.printStackTrace();
+ }
+ return new QueryResultImpl(list,
+ getPathNames(query), queryTime);
+ }
+
+ public List<String> getPathNames(Query query) {
+ List<String> l = Collections.emptyList();
+
+ try {
+ if(query==null) return l;
+ String[] returnAliases = null;
+ try {
+ returnAliases = query.getReturnAliases();
+ } catch(NullPointerException e) {
+ // ignore -
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2188
+ }
+ if(returnAliases==null) {
+ Type[] t;
+ try {
+ t = query.getReturnTypes();
+ } catch(NullPointerException npe) {
+ t = new Type[] { null };
+ // ignore -
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2188
+ }
+ l = new ArrayList<String>(t.length);
+
+ for (int i = 0; i < t.length; i++) {
+ Type type = t[i];
+ if(type==null) {
+ l.add("<multiple types>"); //$NON-NLS-1$
+ } else {
+ l.add(type.getName() );
+ }
+ }
+ } else {
+ String[] t = returnAliases;
+ l = new ArrayList<String>(t.length);
+
+ for (int i = 0; i < t.length; i++) {
+ l.add(t[i]);
+ }
+ }
+ } catch (HibernateException he) {
+ he.printStackTrace();
+ }
+
+ return l;
+ }
+
+ private void setupParameters(Query query2, QueryInputModel model) {
+
+ if(model.getMaxResults()!=null) {
+ query2.setMaxResults( model.getMaxResults().intValue() );
+ }
+
+ ConsoleQueryParameter[] qp = model.getQueryParameters();
+ for (int i = 0; i < qp.length; i++) {
+ ConsoleQueryParameter parameter = qp[i];
+
+ try {
+ int pos = Integer.parseInt(parameter.getName());
+ //FIXME no method to set positioned list value
+ query2.setParameter(pos, calcValue( parameter ), parameter.getType());
+ } catch(NumberFormatException nfe) {
+ Object value = parameter.getValue();
+ if (value != null && value.getClass().isArray()){
+ Object[] values = (Object[])value;
+ query2.setParameterList(parameter.getName(), Arrays.asList(values),
parameter.getType());
+ } else {
+ query2.setParameter(parameter.getName(), calcValue( parameter ),
parameter.getType());
+ }
+ }
+ }
+ }
+
+ private Object calcValue(ConsoleQueryParameter parameter) {
+ return parameter.getValueForQuery();
+ }
+
+ @Override
+ public QueryResult executeCriteriaQuery(String criteria,
+ QueryInputModel queryParameters) {
+ return null;
+ }
+
+ /**
+ * @param ConsoleConfigurationPreferences the prefs to set
+ */
+ public void setConsoleConfigurationPreferences(ConsoleConfigurationPreferences prefs) {
+ this.prefs = prefs;
+ }
+
+ public void build() {
+ configuration = buildWith(null, true);
+ }
+
+ @Override
+ public void buildSessionFactory() {
+ execute(new Command() {
+ public Object execute() {
+ if (sessionFactory != null) {
+ throw new HibernateException("SessionFactory should be closed before building
new SessionFactory");
+ }
+ sessionFactory = configuration.buildSessionFactory();
+ return null;
+ }
+ });
+ }
+
+ @Override
+ public boolean closeSessionFactory() {
+ boolean res = false;
+ if (sessionFactory != null) {
+ sessionFactory.close();
+ sessionFactory = null;
+ res = true;
+ }
+ return res;
+ }
+
+ public Configuration buildWith(final Configuration cfg, final boolean includeMappings)
{
+ reinitClassLoader();
+ //TODO handle user libraries here
+ executionContext = new DefaultExecutionContext(prefs.getName(), classLoader);
+ Configuration result = (Configuration)execute(new Command() {
+ public Object execute() {
+ ConfigurationFactory csf = new ConfigurationFactory(prefs, new HashMap<String,
FakeDelegatingDriver>());
+ return csf.createConfiguration(cfg, includeMappings);
+ }
+ });
+ return result;
+ }
+
+
+ /**
+ * Create class loader - so it uses the original urls list from preferences.
+ */
+ protected void reinitClassLoader() {
+ boolean recreateFlag = true;
+ final URL[] customClassPathURLs =
PreferencesClassPathUtils.getCustomClassPathURLs(prefs);
+ if (classLoader != null) {
+ // check -> do not recreate class loader in case if urls list is the same
+ final URL[] oldURLS = classLoader.getURLs();
+ if (customClassPathURLs.length == oldURLS.length) {
+ int i = 0;
+ for (; i < oldURLS.length; i++) {
+ if (!customClassPathURLs[i].sameFile(oldURLS[i])) {
+ break;
+ }
+ }
+ if (i == oldURLS.length) {
+ recreateFlag = false;
+ }
+ }
+ }
+ if (recreateFlag) {
+ reset();
+ classLoader = createClassLoader(customClassPathURLs);
+ }
+ }
+
+ protected ConsoleConfigClassLoader createClassLoader(final URL[] customClassPathURLs) {
+ ConsoleConfigClassLoader classLoader = AccessController.doPrivileged(new
PrivilegedAction<ConsoleConfigClassLoader>() {
+ public ConsoleConfigClassLoader run() {
+ return new ConsoleConfigClassLoader(customClassPathURLs,
Thread.currentThread().getContextClassLoader()) {
+ protected Class<?> findClass(String name) throws ClassNotFoundException {
+ try {
+ return super.findClass(name);
+ } catch (ClassNotFoundException cnfe) {
+ throw cnfe;
+ }
+ }
+
+ protected synchronized Class<?> loadClass(String name, boolean resolve) throws
ClassNotFoundException {
+ try {
+ return super.loadClass(name, resolve);
+ } catch (ClassNotFoundException cnfe) {
+ throw cnfe;
+ }
+ }
+
+ public Class<?> loadClass(String name) throws ClassNotFoundException {
+ try {
+ return super.loadClass(name);
+ } catch (ClassNotFoundException cnfe) {
+ throw cnfe;
+ }
+ }
+
+ public URL getResource(String name) {
+ return super.getResource(name);
+ }
+ };
+ }
+ });
+ return classLoader;
+ }
+
+ public String getName() {
+ return prefs.getName();
+ }
+
+ public Object execute(Command c) {
+ if (executionContext != null) {
+ return executionContext.execute(c);
+ }
+ final String msg =
NLS.bind(ConsoleMessages.ConsoleConfiguration_null_execution_context, getName());
+ throw new HibernateException(msg);
+ }
+
+ @Override
+ public boolean reset() {
+ boolean res = false;
+ // reseting state
+ if (configuration != null) {
+ configuration = null;
+ res = true;
+ }
+
+ boolean tmp = closeSessionFactory();
+ res = res || tmp;
+ executionContext = null;
+ return res;
+ }
+
+ @Override
+ public boolean hasConfiguration() {
+ // TODO Auto-generated method stub
+ return configuration != null;
+ }
+
+}
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/src/org/jboss/tools/hibernate3_5/HibernateExtension3_5Plugin.java
===================================================================
---
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/src/org/jboss/tools/hibernate3_5/HibernateExtension3_5Plugin.java
(rev 0)
+++
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate3_5/src/org/jboss/tools/hibernate3_5/HibernateExtension3_5Plugin.java 2011-10-03
13:40:52 UTC (rev 35280)
@@ -0,0 +1,50 @@
+package org.jboss.tools.hibernate3_5;
+
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class HibernateExtension3_5Plugin extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID =
"org.jboss.tools.hibernateextension3_5"; //$NON-NLS-1$
+
+ // The shared instance
+ private static HibernateExtension3_5Plugin plugin;
+
+ /**
+ * The constructor
+ */
+ public HibernateExtension3_5Plugin() {
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static HibernateExtension3_5Plugin getDefault() {
+ return plugin;
+ }
+
+}
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/.classpath
===================================================================
---
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/.classpath
(rev 0)
+++
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/.classpath 2011-10-03
13:40:52 UTC (rev 35280)
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry exported="true" kind="lib"
path="lib/optional/ehcache/ehcache-core-2.4.3.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/optional/ehcache/hibernate-ehcache-4.0.0.CR3.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/optional/infinispan/hibernate-infinispan-4.0.0.CR3.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/optional/infinispan/i18nlog-1.0.10.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/optional/infinispan/infinispan-core-5.0.0.CR4.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/optional/infinispan/jboss-marshalling-1.3.0.CR9.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/optional/infinispan/jboss-marshalling-river-1.3.0.CR9.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/optional/infinispan/jboss-transaction-api-1.0.1.GA.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/optional/infinispan/jgroups-2.12.0.Final.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/optional/infinispan/rhq-pluginAnnotations-3.0.1.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/optional/proxool/hibernate-proxool-4.0.0.CR3.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/optional/proxool/proxool-0.8.3.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/jpa/hibernate-entitymanager-4.0.0.CR3.jar"
sourcepath="C:/Documents and
Settings/dgeraskov/.m2/repository/org/hibernate/hibernate-entitymanager/4.0.0.CR3/hibernate-entitymanager-4.0.0.CR3-sources.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/optional/c3p0/c3p0-0.9.1.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/optional/c3p0/hibernate-c3p0-4.0.0.CR3.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/required/antlr-2.7.7.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/required/classmate-0.5.4.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/required/commons-collections-3.1.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/required/dom4j-1.6.1.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/required/hibernate-commons-annotations-4.0.0.CR2.jar"
sourcepath="C:/Documents and
Settings/dgeraskov/.m2/repository/org/hibernate/common/hibernate-commons-annotations/4.0.0.CR2/hibernate-commons-annotations-4.0.0.CR2-sources.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/required/hibernate-core-4.0.0.CR3.jar" sourcepath="C:/Documents
and
Settings/dgeraskov/.m2/repository/org/hibernate/hibernate-core/4.0.0.CR3/hibernate-core-4.0.0.CR3-sources.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/required/hibernate-jpa-2.0-api-1.0.1.Final.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/required/jandex-1.0.3.Final.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/required/javassist-3.12.0.GA.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/required/jboss-logging-3.0.0.GA.jar" sourcepath="C:/Documents and
Settings/dgeraskov/.m2/repository/org/jboss/logging/jboss-logging/3.0.0.GA/jboss-logging-3.0.0.GA-sources.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/required/jta-1.1.jar"/>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con"
path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/.project
===================================================================
---
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/.project
(rev 0)
+++
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/.project 2011-10-03
13:40:52 UTC (rev 35280)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.hibernate4_0</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/.settings/org.eclipse.jdt.core.prefs
===================================================================
---
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/.settings/org.eclipse.jdt.core.prefs
(rev 0)
+++
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/.settings/org.eclipse.jdt.core.prefs 2011-10-03
13:40:52 UTC (rev 35280)
@@ -0,0 +1,8 @@
+#Mon Sep 26 12:36:48 EEST 2011
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/META-INF/MANIFEST.MF
===================================================================
---
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/META-INF/MANIFEST.MF
(rev 0)
+++
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/META-INF/MANIFEST.MF 2011-10-03
13:40:52 UTC (rev 35280)
@@ -0,0 +1,27 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: HibernateExtension4_0
+Bundle-SymbolicName: org.jboss.tools.hibernateextension4_0;singleton:=true
+Bundle-Version: 1.0.0.qualifier
+Bundle-Activator: org.jboss.tools.hibernate4_0.HibernateExtension4_0Plugin
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.hibernate.eclipse;bundle-version="3.4.0",
+ org.eclipse.datatools.connectivity;bundle-version="1.2.2"
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Bundle-ClassPath: lib/required/jboss-logging-3.0.0.GA.jar,
+ lib/optional/c3p0/c3p0-0.9.1.jar,
+ lib/optional/c3p0/hibernate-c3p0-4.0.0.CR3.jar,
+ lib/required/antlr-2.7.7.jar,
+ lib/required/classmate-0.5.4.jar,
+ lib/required/commons-collections-3.1.jar,
+ lib/required/dom4j-1.6.1.jar,
+ lib/required/hibernate-commons-annotations-4.0.0.CR2.jar,
+ lib/required/hibernate-core-4.0.0.CR3.jar,
+ lib/required/hibernate-jpa-2.0-api-1.0.1.Final.jar,
+ lib/required/jandex-1.0.3.Final.jar,
+ lib/required/javassist-3.12.0.GA.jar,
+ lib/required/jta-1.1.jar,
+ lib/jpa/hibernate-entitymanager-4.0.0.CR3.jar,
+ .
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/build.properties
===================================================================
---
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/build.properties
(rev 0)
+++
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/build.properties 2011-10-03
13:40:52 UTC (rev 35280)
@@ -0,0 +1,31 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.xml,\
+ lib/jpa/hibernate-entitymanager-4.0.0.CR3.jar,\
+ lib/optional/c3p0/c3p0-0.9.1.jar,\
+ lib/optional/c3p0/hibernate-c3p0-4.0.0.CR3.jar,\
+ lib/required/antlr-2.7.7.jar,\
+ lib/required/classmate-0.5.4.jar,\
+ lib/required/commons-collections-3.1.jar,\
+ lib/required/dom4j-1.6.1.jar,\
+ lib/required/hibernate-commons-annotations-4.0.0.CR2.jar,\
+ lib/required/hibernate-core-4.0.0.CR3.jar,\
+ lib/required/hibernate-jpa-2.0-api-1.0.1.Final.jar,\
+ lib/required/jandex-1.0.3.Final.jar,\
+ lib/required/javassist-3.12.0.GA.jar,\
+ lib/required/jboss-logging-3.0.0.GA.jar,\
+ lib/required/jta-1.1.jar,\
+ lib/optional/ehcache/ehcache-core-2.4.3.jar,\
+ lib/optional/ehcache/hibernate-ehcache-4.0.0.CR3.jar,\
+ lib/optional/infinispan/hibernate-infinispan-4.0.0.CR3.jar,\
+ lib/optional/infinispan/i18nlog-1.0.10.jar,\
+ lib/optional/infinispan/infinispan-core-5.0.0.CR4.jar,\
+ lib/optional/infinispan/jboss-marshalling-1.3.0.CR9.jar,\
+ lib/optional/infinispan/jboss-marshalling-river-1.3.0.CR9.jar,\
+ lib/optional/infinispan/jboss-transaction-api-1.0.1.GA.jar,\
+ lib/optional/infinispan/jgroups-2.12.0.Final.jar,\
+ lib/optional/infinispan/rhq-pluginAnnotations-3.0.1.jar,\
+ lib/optional/proxool/hibernate-proxool-4.0.0.CR3.jar,\
+ lib/optional/proxool/proxool-0.8.3.jar
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/jpa/hibernate-entitymanager-4.0.0.CR3.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/jpa/hibernate-entitymanager-4.0.0.CR3.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/c3p0/c3p0-0.9.1.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/c3p0/c3p0-0.9.1.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/c3p0/hibernate-c3p0-4.0.0.CR3.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/c3p0/hibernate-c3p0-4.0.0.CR3.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/ehcache/ehcache-core-2.4.3.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/ehcache/ehcache-core-2.4.3.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/ehcache/hibernate-ehcache-4.0.0.CR3.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/ehcache/hibernate-ehcache-4.0.0.CR3.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/infinispan/hibernate-infinispan-4.0.0.CR3.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/infinispan/hibernate-infinispan-4.0.0.CR3.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/infinispan/i18nlog-1.0.10.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/infinispan/i18nlog-1.0.10.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/infinispan/infinispan-core-5.0.0.CR4.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/infinispan/infinispan-core-5.0.0.CR4.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/infinispan/jboss-marshalling-1.3.0.CR9.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/infinispan/jboss-marshalling-1.3.0.CR9.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/infinispan/jboss-marshalling-river-1.3.0.CR9.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/infinispan/jboss-marshalling-river-1.3.0.CR9.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/infinispan/jboss-transaction-api-1.0.1.GA.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/infinispan/jboss-transaction-api-1.0.1.GA.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/infinispan/jgroups-2.12.0.Final.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/infinispan/jgroups-2.12.0.Final.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/infinispan/rhq-pluginAnnotations-3.0.1.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/infinispan/rhq-pluginAnnotations-3.0.1.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/proxool/hibernate-proxool-4.0.0.CR3.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/proxool/hibernate-proxool-4.0.0.CR3.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/proxool/proxool-0.8.3.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/optional/proxool/proxool-0.8.3.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/required/antlr-2.7.7.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/required/antlr-2.7.7.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/required/classmate-0.5.4.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/required/classmate-0.5.4.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/required/commons-collections-3.1.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/required/commons-collections-3.1.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/required/dom4j-1.6.1.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/required/dom4j-1.6.1.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/required/hibernate-commons-annotations-4.0.0.CR2.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/required/hibernate-commons-annotations-4.0.0.CR2.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/required/hibernate-core-4.0.0.CR3.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/required/hibernate-core-4.0.0.CR3.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/required/hibernate-jpa-2.0-api-1.0.1.Final.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/required/hibernate-jpa-2.0-api-1.0.1.Final.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/required/jandex-1.0.3.Final.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/required/jandex-1.0.3.Final.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/required/javassist-3.12.0.GA.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/required/javassist-3.12.0.GA.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/required/jboss-logging-3.0.0.GA.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/required/jboss-logging-3.0.0.GA.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/required/jta-1.1.jar
===================================================================
(Binary files differ)
Property changes on:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/required/jta-1.1.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/plugin.xml
===================================================================
---
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/plugin.xml
(rev 0)
+++
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/plugin.xml 2011-10-03
13:40:52 UTC (rev 35280)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension
+ point="org.hibernate.eclipse.hibernateextension">
+ <hibernateextension
+ classname="org.jboss.tools.hibernate4_0.HibernateExtension4_0"
+ version="4.0">
+ </hibernateextension>
+ </extension>
+
+</plugin>
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/ConfigurationFactory.java
===================================================================
---
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/ConfigurationFactory.java
(rev 0)
+++
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/ConfigurationFactory.java 2011-10-03
13:40:52 UTC (rev 35280)
@@ -0,0 +1,460 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt 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.tools.hibernate4_0;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+import java.io.IOException;
+import java.io.InputStream;
+import java.lang.reflect.Method;
+import java.sql.Connection;
+import java.sql.Driver;
+import java.sql.DriverManager;
+import java.sql.SQLException;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Properties;
+
+import org.dom4j.DocumentException;
+import org.dom4j.Node;
+import org.dom4j.io.DOMWriter;
+import org.eclipse.datatools.connectivity.IConnectionProfile;
+import org.eclipse.datatools.connectivity.ProfileManager;
+import org.eclipse.datatools.connectivity.drivers.jdbc.IJDBCDriverDefinitionConstants;
+import org.eclipse.osgi.util.NLS;
+import org.hibernate.HibernateException;
+import org.hibernate.MappingException;
+import org.hibernate.annotations.common.util.ReflectHelper;
+import org.hibernate.annotations.common.util.StringHelper;
+import org.hibernate.cfg.Configuration;
+import org.hibernate.cfg.Environment;
+import org.hibernate.cfg.NamingStrategy;
+import org.hibernate.console.ConnectionProfileUtil;
+import org.hibernate.console.ConsoleConfiguration;
+import org.hibernate.console.ConsoleMessages;
+import org.hibernate.console.HibernateConsoleRuntimeException;
+import org.hibernate.console.preferences.ConsoleConfigurationPreferences;
+import
org.hibernate.console.preferences.ConsoleConfigurationPreferences.ConfigurationMode;
+import org.hibernate.dialect.Dialect;
+import org.hibernate.engine.jdbc.spi.JdbcServices;
+import org.hibernate.internal.util.ConfigHelper;
+import org.hibernate.internal.util.xml.XMLHelper;
+import org.hibernate.service.ServiceRegistry;
+import org.w3c.dom.Document;
+import org.xml.sax.EntityResolver;
+import org.xml.sax.InputSource;
+
+public class ConfigurationFactory {
+
+ public static final String FAKE_TM_LOOKUP =
"org.hibernate.console.FakeTransactionManagerLookup"; //$NON-NLS-1$
+
+ private ConsoleConfigurationPreferences prefs;
+ private Map<String, FakeDelegatingDriver> fakeDrivers;
+
+ public ConfigurationFactory(ConsoleConfigurationPreferences prefs,
+ Map<String, FakeDelegatingDriver> fakeDrivers) {
+ this.prefs = prefs;
+ this.fakeDrivers = fakeDrivers;
+ }
+
+ public ConsoleConfigurationPreferences getPreferences() {
+ return prefs;
+ }
+
+ public Configuration createConfiguration(Configuration localCfg, boolean
includeMappings) {
+ Properties properties = prefs.getProperties();
+
+ if (properties != null) {
+ // in case the transaction manager is empty then we need to inject a faketm since
+ // hibernate will still try and instantiate it.
+ String str = properties.getProperty(Environment.TRANSACTION_MANAGER_STRATEGY);
+ if (str != null && StringHelper.isEmpty(str)) {
+ properties.setProperty(Environment.TRANSACTION_MANAGER_STRATEGY, FAKE_TM_LOOKUP);
+ // properties.setProperty( "hibernate.transaction.factory_class",
"");
+ }
+ }
+ if (localCfg == null) {
+ localCfg = buildConfiguration(properties, includeMappings);
+ } else {
+ // Properties origProperties = cfg.getProperties();
+ // origProperties.putAll(properties);
+ // cfg.setProperties(origProperties);
+ // TODO: this is actually only for jdbc reveng...
+ // localCfg = configureStandardConfiguration( includeMappings, localCfg, properties
);
+ }
+
+ // here both setProperties and configxml have had their chance to tell which
databasedriver
+ // is needed.
+ registerFakeDriver(localCfg.getProperty(Environment.DRIVER));
+ // autoConfigureDialect(localCfg); Disabled for now since it causes very looong
timeouts for
+ // non-running databases + i havent been needed until now...
+
+ // TODO: jpa configuration ?
+ if (includeMappings) {
+ File[] mappingFiles = prefs.getMappingFiles();
+
+ for (int i = 0; i < mappingFiles.length; i++) {
+ File hbm = mappingFiles[i];
+ localCfg = localCfg.addFile(hbm);
+ }
+ }
+ // TODO: HBX-
+ localCfg.setProperty("hibernate.temp.use_jdbc_metadata_defaults",
"false"); //$NON-NLS-1$//$NON-NLS-2$
+ localCfg.setProperty(Environment.HBM2DDL_AUTO, "false"); //$NON-NLS-1$
+ // to fix: JBIDE-5839 & JBIDE-5997 - setup this property: false is default value
+ // to make hibernate tools diff hibernate versions compatible:
+ // if the property not set get NoSuchMethodError with FullTextIndexEventListener
+ if (localCfg.getProperty("hibernate.search.autoregister_listeners") == null)
{ //$NON-NLS-1$
+ localCfg.setProperty("hibernate.search.autoregister_listeners",
"false"); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ return localCfg;
+ }
+
+ @SuppressWarnings("unused")
+ private void autoConfigureDialect(Configuration localCfg, ServiceRegistry
serviceRegistry) {
+ if (localCfg.getProperty(Environment.DIALECT) == null) {
+ String url = localCfg.getProperty(Environment.URL);
+ String user = localCfg.getProperty(Environment.USER);
+ String pass = localCfg.getProperty(Environment.PASS);
+ Connection connection = null;
+ try {
+ connection = DriverManager.getConnection(url, user, pass);
+ // SQL Dialect:
+ JdbcServices jdbcServices = serviceRegistry.getService(JdbcServices.class);
+ Dialect dialect = jdbcServices.getDialect();
+ localCfg.setProperty(Environment.DIALECT, dialect.toString());
+ } catch (SQLException e) {
+ // can't determine dialect
+ }
+ if (connection != null) {
+ try {
+ connection.close();
+ } catch (SQLException e) {
+ // ignore
+ }
+ }
+ }
+ }
+
+ // TODO: delegate to some extension point
+ private Configuration buildConfiguration(Properties properties, boolean includeMappings)
{
+ Configuration localCfg = null;
+ if (prefs.getConfigurationMode().equals(ConfigurationMode.ANNOTATIONS)) {
+ try {
+ localCfg = buildAnnotationConfiguration();
+ localCfg = configureStandardConfiguration(includeMappings, localCfg, properties);
+ } catch (HibernateConsoleRuntimeException he) {
+ throw he;
+ } catch (Exception e) {
+ throw new HibernateConsoleRuntimeException(
+ ConsoleMessages.ConsoleConfiguration_could_not_load_annotationconfiguration,
+ e);
+ }
+ } else if (prefs.getConfigurationMode().equals(ConfigurationMode.JPA)) {
+ try {
+ localCfg = buildJPAConfiguration(getPreferences().getPersistenceUnitName(),
+ properties, prefs.getEntityResolverName(), includeMappings);
+ } catch (HibernateConsoleRuntimeException he) {
+ throw he;
+ } catch (Exception e) {
+ throw new HibernateConsoleRuntimeException(
+ ConsoleMessages.ConsoleConfiguration_could_not_load_jpa_configuration, e);
+ }
+ } else {
+ localCfg = new Configuration();
+ localCfg = configureStandardConfiguration(includeMappings, localCfg, properties);
+ }
+ return localCfg;
+ }
+
+ @SuppressWarnings("unchecked")
+ private Configuration buildAnnotationConfiguration() throws ClassNotFoundException,
+ InstantiationException, IllegalAccessException {
+ Class<Configuration> clazz = ReflectHelper
+ .classForName("org.hibernate.cfg.AnnotationConfiguration"); //$NON-NLS-1$
+ Configuration newInstance = clazz.newInstance();
+ return newInstance;
+ }
+
+ private Configuration buildJPAConfiguration(String persistenceUnit, Properties
properties,
+ String entityResolver, boolean includeMappings) {
+ if (StringHelper.isEmpty(persistenceUnit)) {
+ persistenceUnit = null;
+ }
+ try {
+ Map<Object, Object> overrides = new HashMap<Object, Object>();
+ if (properties != null) {
+ overrides.putAll(properties);
+ }
+ if (StringHelper.isNotEmpty(prefs.getNamingStrategy())) {
+ overrides.put("hibernate.ejb.naming_strategy", prefs.getNamingStrategy());
//$NON-NLS-1$
+ }
+ if (StringHelper.isNotEmpty(prefs.getDialectName())) {
+ overrides.put(Environment.DIALECT, prefs.getDialectName());
+ }
+ if (!includeMappings) {
+ overrides.put("hibernate.archive.autodetection", "none");
//$NON-NLS-1$//$NON-NLS-2$
+ }
+ if (StringHelper.isEmpty((String)
overrides.get("javax.persistence.validation.mode"))) {//$NON-NLS-1$
+ overrides.put("javax.persistence.validation.mode", "none");
//$NON-NLS-1$//$NON-NLS-2$
+ }
+ Class<?> clazz = ReflectHelper.classForName(
+ "org.hibernate.ejb.Ejb3Configuration", ConsoleConfiguration.class);
//$NON-NLS-1$
+ Object ejb3cfg = clazz.newInstance();
+ if (StringHelper.isNotEmpty(entityResolver)) {
+ Class<?> resolver = ReflectHelper.classForName(entityResolver,
this.getClass());
+ Object object = resolver.newInstance();
+ Method method = clazz.getMethod(
+ "setEntityResolver", new Class[] { EntityResolver.class });//$NON-NLS-1$
+ method.invoke(ejb3cfg, new Object[] { object });
+ }
+ Method method = clazz.getMethod("configure", new Class[] { String.class,
Map.class }); //$NON-NLS-1$
+ if (method.invoke(ejb3cfg, new Object[] { persistenceUnit, overrides }) == null) {
+ String out = NLS.bind(
+ ConsoleMessages.ConsoleConfiguration_persistence_unit_not_found,
+ persistenceUnit);
+ throw new HibernateConsoleRuntimeException(out);
+ }
+ method = clazz.getMethod("getHibernateConfiguration", new
Class[0]);//$NON-NLS-1$
+ Configuration invoke = (Configuration) method.invoke(ejb3cfg, (Object[]) null);
+ invoke = configureConnectionProfile(invoke);
+ return invoke;
+ } catch (HibernateConsoleRuntimeException he) {
+ throw he;
+ } catch (Exception e) {
+ throw new HibernateConsoleRuntimeException(
+ ConsoleMessages.ConsoleConfiguration_could_not_create_jpa_based_configuration,
+ e);
+ }
+ }
+
+ private Configuration configureStandardConfiguration(final boolean includeMappings,
+ Configuration localCfg, Properties properties) {
+ if (properties != null) {
+ localCfg = localCfg.setProperties(properties);
+ }
+ EntityResolver entityResolver = XMLHelper.DEFAULT_DTD_RESOLVER;
+ if (StringHelper.isNotEmpty(prefs.getEntityResolverName())) {
+ try {
+ entityResolver = (EntityResolver) ReflectHelper.classForName(
+ prefs.getEntityResolverName()).newInstance();
+ } catch (Exception c) {
+ throw new HibernateConsoleRuntimeException(
+ ConsoleMessages.ConsoleConfiguration_could_not_configure_entity_resolver
+ + prefs.getEntityResolverName(), c);
+ }
+ }
+ localCfg.setEntityResolver(entityResolver);
+ if (StringHelper.isNotEmpty(prefs.getNamingStrategy())) {
+ try {
+ NamingStrategy ns = (NamingStrategy) ReflectHelper.classForName(
+ prefs.getNamingStrategy()).newInstance();
+ localCfg.setNamingStrategy(ns);
+ } catch (Exception c) {
+ throw new HibernateConsoleRuntimeException(
+ ConsoleMessages.ConsoleConfiguration_could_not_configure_naming_strategy
+ + prefs.getNamingStrategy(), c);
+ }
+ }
+ localCfg = loadConfigurationXML(localCfg, includeMappings, entityResolver);
+ localCfg = configureConnectionProfile(localCfg);
+ // replace dialect if it is set in preferences
+ if (StringHelper.isNotEmpty(prefs.getDialectName())) {
+ localCfg.setProperty(Environment.DIALECT, prefs.getDialectName());
+ }
+ if
(StringHelper.isEmpty(localCfg.getProperty("javax.persistence.validation.mode")))
{//$NON-NLS-1$
+ localCfg.setProperty("javax.persistence.validation.mode", "none");
//$NON-NLS-1$//$NON-NLS-2$
+ }
+ return localCfg;
+ }
+
+ @SuppressWarnings("unchecked")
+ private Configuration loadConfigurationXML(Configuration localCfg, boolean
includeMappings,
+ EntityResolver entityResolver) {
+ File configXMLFile = prefs.getConfigXMLFile();
+ if (!includeMappings) {
+ org.dom4j.Document doc;
+ XMLHelper xmlHelper = new XMLHelper();
+ InputStream stream = null;
+ String resourceName = "<unknown>"; //$NON-NLS-1$
+ if (configXMLFile != null) {
+ resourceName = configXMLFile.toString();
+ try {
+ stream = new FileInputStream(configXMLFile);
+ } catch (FileNotFoundException e1) {
+ throw new HibernateConsoleRuntimeException(
+ ConsoleMessages.ConsoleConfiguration_could_not_access + configXMLFile,
+ e1);
+ }
+ } else {
+ resourceName = "/hibernate.cfg.xml"; //$NON-NLS-1$
+ if (checkHibernateResoureExistence(resourceName)) {
+ stream = ConfigHelper.getResourceAsStream(resourceName); // simulate
hibernate's
+ // default look up
+ } else {
+ return localCfg;
+ }
+ }
+ try {
+ List<Throwable> errors = new ArrayList<Throwable>();
+ doc = xmlHelper.createSAXReader(resourceName, errors, entityResolver).read(
+ new InputSource(stream));
+ if (errors.size() != 0) {
+ throw new MappingException(
+ ConsoleMessages.ConsoleConfiguration_invalid_configuration, errors
+ .get(0));
+ }
+ List<Node> list = doc.getRootElement()
+ .element("session-factory").elements("mapping"); //$NON-NLS-1$
//$NON-NLS-2$
+ for (Node element : list) {
+ element.getParent().remove(element);
+ }
+ DOMWriter dw = new DOMWriter();
+ Document document = dw.write(doc);
+ return localCfg.configure(document);
+
+ } catch (DocumentException e) {
+ throw new HibernateException(
+ ConsoleMessages.ConsoleConfiguration_could_not_parse_configuration
+ + resourceName, e);
+ } finally {
+ try {
+ if (stream != null)
+ stream.close();
+ } catch (IOException ioe) {
+ // log.warn( "could not close input stream for: " + resourceName, ioe );
+ }
+ }
+ } else {
+ if (configXMLFile != null) {
+ return localCfg.configure(configXMLFile);
+ } else {
+ Configuration resultCfg = localCfg;
+ if (checkHibernateResoureExistence("/hibernate.cfg.xml")) { //$NON-NLS-1$
+ resultCfg = localCfg.configure();
+ }
+ return resultCfg;
+ }
+ }
+ }
+
+ private boolean checkHibernateResoureExistence(String resource) {
+ InputStream is = null;
+ try {
+ is = ConfigHelper.getResourceAsStream(resource);
+ } catch (HibernateException e) {
+ // just ignore
+ } finally {
+ try {
+ if (is != null)
+ is.close();
+ } catch (IOException e) {
+ // ignore
+ }
+ }
+ return (is != null);
+ }
+
+ private Configuration configureConnectionProfile(Configuration localCfg) {
+ String connProfileName = prefs.getConnectionProfileName();
+ if (connProfileName == null) {
+ return localCfg;
+ }
+ IConnectionProfile profile = ProfileManager.getInstance().getProfileByName(
+ connProfileName);
+ if (profile != null) {
+ final Properties cpProperties = profile.getProperties(profile.getProviderId());
+ final Properties invokeProperties = localCfg.getProperties();
+ // set this property to null!
+ invokeProperties.remove(Environment.DATASOURCE);
+ localCfg.setProperties(invokeProperties);
+ // seems we should not setup dialect here
+ //String dialect = "org.hibernate.dialect.HSQLDialect";
+ //invoke.setProperty(Environment.DIALECT, dialect);
+ String driverClass = ConnectionProfileUtil.getDriverClass(connProfileName);
+ localCfg.setProperty(Environment.DRIVER, driverClass);
+ //String driverJarPath = driverInstance != null ?
+ // driverInstance.getJarList() : ""; //$NON-NLS-1$
+ String url = cpProperties.getProperty(IJDBCDriverDefinitionConstants.URL_PROP_ID);
+ // url += "/";// +
+ // cpProperties.getProperty(IJDBCDriverDefinitionConstants.DATABASE_NAME_PROP_ID);
+ localCfg.setProperty(Environment.URL, url);
+ String user =
cpProperties.getProperty(IJDBCDriverDefinitionConstants.USERNAME_PROP_ID);
+ if (null != user && user.length() > 0) {
+ localCfg.setProperty(Environment.USER, user);
+ }
+ String pass =
cpProperties.getProperty(IJDBCDriverDefinitionConstants.PASSWORD_PROP_ID);
+ if (null != pass && pass.length() > 0) {
+ localCfg.setProperty(Environment.PASS, pass);
+ }
+ } else {
+ String out = NLS.bind(
+ ConsoleMessages.ConsoleConfiguration_connection_profile_not_found,
+ connProfileName);
+ throw new HibernateConsoleRuntimeException(out);
+ }
+ return localCfg;
+ }
+
+ /**
+ * DriverManager checks what classloader a class is loaded from thus we register a
FakeDriver
+ * that we know is loaded "properly" which delegates all it class to the real
driver. By doing
+ * so we can convince DriverManager that we can use any dynamically loaded driver.
+ *
+ * @param driverClassName
+ */
+ @SuppressWarnings("unchecked")
+ private void registerFakeDriver(String driverClassName) {
+ if (driverClassName != null) {
+ try {
+ Class<Driver> driverClass = ReflectHelper.classForName(driverClassName);
+ if (!fakeDrivers.containsKey(driverClassName)) { // To avoid "double
registration"
+ FakeDelegatingDriver fakeDelegatingDriver = new FakeDelegatingDriver(
+ driverClass.newInstance());
+ DriverManager.registerDriver(fakeDelegatingDriver);
+ fakeDrivers.put(driverClassName, fakeDelegatingDriver);
+ }
+ } catch (ClassNotFoundException e) {
+ String out =
+ NLS.bind(ConsoleMessages.ConsoleConfiguration_problems_while_loading_database_driverclass,
driverClassName);
+ throw new HibernateConsoleRuntimeException(out, e);
+ } catch (InstantiationException e) {
+ String out =
+ NLS.bind(ConsoleMessages.ConsoleConfiguration_problems_while_loading_database_driverclass,
driverClassName);
+ throw new HibernateConsoleRuntimeException(out, e);
+ } catch (IllegalAccessException e) {
+ String out =
+ NLS.bind(ConsoleMessages.ConsoleConfiguration_problems_while_loading_database_driverclass,
driverClassName);
+ throw new HibernateConsoleRuntimeException(out, e);
+ } catch (SQLException e) {
+ String out =
+ NLS.bind(ConsoleMessages.ConsoleConfiguration_problems_while_loading_database_driverclass,
driverClassName);
+ throw new HibernateConsoleRuntimeException(out, e);
+ }
+ }
+ }
+
+}
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/FakeDelegatingDriver.java
===================================================================
---
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/FakeDelegatingDriver.java
(rev 0)
+++
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/FakeDelegatingDriver.java 2011-10-03
13:40:52 UTC (rev 35280)
@@ -0,0 +1,55 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt 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.tools.hibernate4_0;
+
+import java.sql.Connection;
+import java.sql.Driver;
+import java.sql.DriverPropertyInfo;
+import java.sql.SQLException;
+import java.util.Properties;
+
+public class FakeDelegatingDriver implements Driver {
+ private Driver driver;
+
+ public FakeDelegatingDriver(Driver d) {
+ this.driver = d;
+ }
+ public boolean acceptsURL(String u) throws SQLException {
+ return this.driver.acceptsURL(u);
+ }
+ public Connection connect(String u, Properties p) throws SQLException {
+ return this.driver.connect(u, p);
+ }
+ public int getMajorVersion() {
+ return this.driver.getMajorVersion();
+ }
+ public int getMinorVersion() {
+ return this.driver.getMinorVersion();
+ }
+ public DriverPropertyInfo[] getPropertyInfo(String u, Properties p)
+ throws SQLException {
+ return this.driver.getPropertyInfo(u, p);
+ }
+ public boolean jdbcCompliant() {
+ return this.driver.jdbcCompliant();
+ }
+}
\ No newline at end of file
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/HibernateExtension4_0.java
===================================================================
---
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/HibernateExtension4_0.java
(rev 0)
+++
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/HibernateExtension4_0.java 2011-10-03
13:40:52 UTC (rev 35280)
@@ -0,0 +1,361 @@
+package org.jboss.tools.hibernate4_0;
+
+import java.net.URL;
+import java.security.AccessController;
+import java.security.PrivilegedAction;
+import java.sql.DriverManager;
+import java.sql.SQLException;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
+import org.eclipse.osgi.util.NLS;
+import org.hibernate.Query;
+import org.hibernate.Session;
+import org.hibernate.SessionFactory;
+import org.hibernate.cfg.Configuration;
+import org.hibernate.console.ConsoleConfigClassLoader;
+import org.hibernate.console.ConsoleMessages;
+import org.hibernate.console.ConsoleQueryParameter;
+import org.hibernate.console.QueryInputModel;
+import org.hibernate.console.execution.DefaultExecutionContext;
+import org.hibernate.console.execution.ExecutionContext;
+import org.hibernate.console.execution.ExecutionContext.Command;
+import org.hibernate.console.ext.HibernateException;
+import org.hibernate.console.ext.HibernateExtension;
+import org.hibernate.console.ext.QueryResult;
+import org.hibernate.console.ext.QueryResultImpl;
+import org.hibernate.console.preferences.ConsoleConfigurationPreferences;
+import org.hibernate.console.preferences.PreferencesClassPathUtils;
+import org.hibernate.service.BasicServiceRegistry;
+import org.hibernate.service.ServiceRegistryBuilder;
+import org.hibernate.service.internal.BasicServiceRegistryImpl;
+import org.hibernate.type.Type;
+
+public class HibernateExtension4_0 implements HibernateExtension {
+
+ private ConsoleConfigClassLoader classLoader = null;
+
+ private ExecutionContext executionContext;
+
+ private ConsoleConfigurationPreferences prefs;
+
+ private Configuration configuration;
+
+ private SessionFactory sessionFactory;
+
+ private BasicServiceRegistry serviceRegistry;
+
+ private Map<String, FakeDelegatingDriver> fakeDrivers = new HashMap<String,
FakeDelegatingDriver>();
+
+ public HibernateExtension4_0() {
+ }
+
+ @Override
+ public String getHibernateVersion() {
+ return "4.0";
+ }
+
+ @Override
+ public QueryResult executeHQLQuery(String hql,
+ QueryInputModel queryParameters) {
+ System.out.println("Execute HQLQuery in " + getClass().getName());
+ Session session = null;
+ try {
+ session = sessionFactory.openSession();
+ } catch (Exception e){
+ e.printStackTrace();
+ }
+ Query query = session.createQuery(hql);
+ List<Object> list = Collections.emptyList();
+ long queryTime = 0;
+ try {
+ list = new ArrayList<Object>();
+ setupParameters(query, queryParameters);
+ long startTime = System.currentTimeMillis();
+ Iterator<?> iter = query.list().iterator(); // need to be user-controllable to
toggle between iterate, scroll etc.
+ queryTime = System.currentTimeMillis() - startTime;
+ while (iter.hasNext() ) {
+ Object element = iter.next();
+ list.add(element);
+ }
+ }
+ catch (HibernateException e) {
+ e.printStackTrace();
+ }
+ return new QueryResultImpl(list,
+ getPathNames(query), queryTime);
+ }
+
+ public List<String> getPathNames(Query query) {
+ List<String> l = Collections.emptyList();
+
+ try {
+ if(query==null) return l;
+ String[] returnAliases = null;
+ try {
+ returnAliases = query.getReturnAliases();
+ } catch(NullPointerException e) {
+ // ignore -
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2188
+ }
+ if(returnAliases==null) {
+ Type[] t;
+ try {
+ t = query.getReturnTypes();
+ } catch(NullPointerException npe) {
+ t = new Type[] { null };
+ // ignore -
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2188
+ }
+ l = new ArrayList<String>(t.length);
+
+ for (int i = 0; i < t.length; i++) {
+ Type type = t[i];
+ if(type==null) {
+ l.add("<multiple types>"); //$NON-NLS-1$
+ } else {
+ l.add(type.getName() );
+ }
+ }
+ } else {
+ String[] t = returnAliases;
+ l = new ArrayList<String>(t.length);
+
+ for (int i = 0; i < t.length; i++) {
+ l.add(t[i]);
+ }
+ }
+ } catch (HibernateException he) {
+ he.printStackTrace();
+ }
+
+ return l;
+ }
+
+ private void setupParameters(Query query2, QueryInputModel model) {
+
+ if(model.getMaxResults()!=null) {
+ query2.setMaxResults( model.getMaxResults().intValue() );
+ }
+
+ ConsoleQueryParameter[] qp = model.getQueryParameters();
+ for (int i = 0; i < qp.length; i++) {
+ ConsoleQueryParameter parameter = qp[i];
+
+ try {
+ int pos = Integer.parseInt(parameter.getName());
+ //FIXME no method to set positioned list value
+ query2.setParameter(pos, calcValue( parameter ), parameter.getType());
+ } catch(NumberFormatException nfe) {
+ Object value = parameter.getValue();
+ if (value != null && value.getClass().isArray()){
+ Object[] values = (Object[])value;
+ query2.setParameterList(parameter.getName(), Arrays.asList(values),
parameter.getType());
+ } else {
+ query2.setParameter(parameter.getName(), calcValue( parameter ),
parameter.getType());
+ }
+ }
+ }
+ }
+
+ private Object calcValue(ConsoleQueryParameter parameter) {
+ return parameter.getValueForQuery();
+ }
+
+ @Override
+ public QueryResult executeCriteriaQuery(String criteria,
+ QueryInputModel queryParameters) {
+ return null;
+ }
+
+ /**
+ * @param ConsoleConfigurationPreferences the prefs to set
+ */
+ public void setConsoleConfigurationPreferences(ConsoleConfigurationPreferences prefs) {
+ this.prefs = prefs;
+ }
+
+ public void build() {
+ configuration = buildWith(null, true);
+ }
+
+ @Override
+ public void buildSessionFactory() {
+ execute(new Command() {
+ public Object execute() {
+ if (sessionFactory != null) {
+ throw new HibernateException("Factory was not closed before attempt to build a
new Factory");
+ }
+ serviceRegistry = new ServiceRegistryBuilder()
+ .applySettings( configuration.getProperties())
+ .buildServiceRegistry();
+ sessionFactory = configuration.buildSessionFactory(serviceRegistry);
+ return null;
+ }
+ });
+ }
+
+ @Override
+ public boolean closeSessionFactory() {
+ boolean res = false;
+ if (sessionFactory != null) {
+ sessionFactory.close();
+ sessionFactory = null;
+ ( (BasicServiceRegistryImpl) serviceRegistry ).destroy();
+ serviceRegistry = null;
+ res = true;
+ }
+ return res;
+ }
+
+ public Configuration buildWith(final Configuration cfg, final boolean includeMappings)
{
+ reinitClassLoader();
+ //TODO handle user libraries here
+ executionContext = new DefaultExecutionContext(prefs.getName(), classLoader);
+ Configuration result = (Configuration)execute(new Command() {
+ public Object execute() {
+ ConfigurationFactory cf = new ConfigurationFactory(prefs, fakeDrivers);
+ return cf.createConfiguration(cfg, includeMappings);
+ }
+ });
+ return result;
+ }
+
+ /**
+ * Create class loader - so it uses the original urls list from preferences.
+ */
+ protected void reinitClassLoader() {
+ boolean recreateFlag = true;
+ final URL[] customClassPathURLs =
PreferencesClassPathUtils.getCustomClassPathURLs(prefs);
+ if (classLoader != null) {
+ // check -> do not recreate class loader in case if urls list is the same
+ final URL[] oldURLS = classLoader.getURLs();
+ if (customClassPathURLs.length == oldURLS.length) {
+ int i = 0;
+ for (; i < oldURLS.length; i++) {
+ if (!customClassPathURLs[i].sameFile(oldURLS[i])) {
+ break;
+ }
+ }
+ if (i == oldURLS.length) {
+ recreateFlag = false;
+ }
+ }
+ }
+ if (recreateFlag) {
+ reset();
+ classLoader = createClassLoader(customClassPathURLs);
+ }
+ }
+
+ protected ConsoleConfigClassLoader createClassLoader(final URL[] customClassPathURLs) {
+ ConsoleConfigClassLoader classLoader = AccessController.doPrivileged(new
PrivilegedAction<ConsoleConfigClassLoader>() {
+ public ConsoleConfigClassLoader run() {
+ return new ConsoleConfigClassLoader(customClassPathURLs,
Thread.currentThread().getContextClassLoader()) {
+ protected Class<?> findClass(String name) throws ClassNotFoundException {
+ try {
+ return super.findClass(name);
+ } catch (ClassNotFoundException cnfe) {
+ throw cnfe;
+ }
+ }
+
+ protected synchronized Class<?> loadClass(String name, boolean resolve) throws
ClassNotFoundException {
+ try {
+ return super.loadClass(name, resolve);
+ } catch (ClassNotFoundException cnfe) {
+ throw cnfe;
+ }
+ }
+
+ public Class<?> loadClass(String name) throws ClassNotFoundException {
+ try {
+ return super.loadClass(name);
+ } catch (ClassNotFoundException cnfe) {
+ throw cnfe;
+ }
+ }
+
+ public URL getResource(String name) {
+ return super.getResource(name);
+ }
+ };
+ }
+ });
+ return classLoader;
+ }
+
+ public String getName() {
+ return prefs.getName();
+ }
+
+ public Object execute(Command c) {
+ if (executionContext != null) {
+ return executionContext.execute(c);
+ }
+ final String msg =
NLS.bind(ConsoleMessages.ConsoleConfiguration_null_execution_context, getName());
+ throw new HibernateException(msg);
+ }
+
+ @Override
+ public boolean reset() {
+ boolean res = false;
+ // reseting state
+ if (configuration != null) {
+ configuration = null;
+ res = true;
+ }
+
+ boolean tmp = closeSessionFactory();
+ res = res || tmp;
+ if (executionContext != null) {
+ executionContext.execute(new Command() {
+ public Object execute() {
+ Iterator<FakeDelegatingDriver> it = fakeDrivers.values().iterator();
+ while (it.hasNext()) {
+ try {
+ DriverManager.deregisterDriver(it.next());
+ } catch (SQLException e) {
+ // ignore
+ }
+ }
+ return null;
+ }
+ });
+ }
+ if (fakeDrivers.size() > 0) {
+ fakeDrivers.clear();
+ res = true;
+ }
+ tmp = cleanUpClassLoader();
+ res = res || tmp;
+ executionContext = null;
+ return res;
+ }
+
+ protected boolean cleanUpClassLoader() {
+ boolean res = false;
+ ClassLoader classLoaderTmp = classLoader;
+ while (classLoaderTmp != null) {
+ if (classLoaderTmp instanceof ConsoleConfigClassLoader) {
+ ((ConsoleConfigClassLoader)classLoaderTmp).close();
+ res = true;
+ }
+ classLoaderTmp = classLoaderTmp.getParent();
+ }
+ if (classLoader != null) {
+ classLoader = null;
+ res = true;
+ }
+ return res;
+ }
+
+ @Override
+ public boolean hasConfiguration() {
+ return configuration != null;
+ }
+
+}
\ No newline at end of file
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/HibernateExtension4_0Plugin.java
===================================================================
---
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/HibernateExtension4_0Plugin.java
(rev 0)
+++
branches/dead/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/HibernateExtension4_0Plugin.java 2011-10-03
13:40:52 UTC (rev 35280)
@@ -0,0 +1,50 @@
+package org.jboss.tools.hibernate4_0;
+
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class HibernateExtension4_0Plugin extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID =
"org.jboss.tools.hibernateextension4_0"; //$NON-NLS-1$
+
+ // The shared instance
+ private static HibernateExtension4_0Plugin plugin;
+
+ /**
+ * The constructor
+ */
+ public HibernateExtension4_0Plugin() {
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static HibernateExtension4_0Plugin getDefault() {
+ return plugin;
+ }
+
+}