Home » Modeling » EMF » Using GMF database editor
| | | |
Re: Using GMF database editor [message #430160 is a reply to message #430159] |
Tue, 12 May 2009 15:43 |
Alireza Missing name Messages: 105 Registered: July 2009 |
Senior Member |
|
|
Ya, you are right, I should set it dependent and I did but I received the
error mentioned in the tutorial:
!ENTRY org.eclipse.equinox.registry 4 1 2009-05-12 17:37:25.704
!MESSAGE Plug-in org.eclipse.gmf.examples.mindmap.diagram was unable to
load class mindmap.diagram.db.OpenMindmapDBEditor.
!STACK 0
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter $TerminatingClassNotFoundException:
An error occurred while automatically activating bundle
org.eclipse.gmf.examples.mindmap.diagram (2161).
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:125)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:427)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:193)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:370)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:446)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:399)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:387)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:87)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:315)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1274)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:160)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:867)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:267)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
at
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:263)
at
org.eclipse.ui.internal.PluginAction.createDelegate(PluginAc tion.java:122)
at
org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:223)
at
org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPl uginAction.java:229)
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:583)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:500)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2384)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 00)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:490)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
Caused by: org.osgi.framework.BundleException: Exception in
mindmap.diagram.part.MindmapDiagramEditorPlugin.start() of bundle
org.eclipse.gmf.examples.mindmap.diagram.
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:1028)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:984)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:346)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:265)
at
org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:400)
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
... 49 more
Caused by: org.hibernate.MappingException: Could not determine type for:
org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType, for
columns: [org.hibernate.mapping.Column(econtainer_class),
org.hibernate.mapping.Column(e_container)]
at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:2 66)
at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:2 53)
at org.hibernate.mapping.Property.isValid(Property.java:185)
at
org.hibernate.mapping.PersistentClass.validate(PersistentCla ss.java:440)
at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
at org.hibernate.cfg.Configuration.validate(Configuration.java: 1102)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1287)
at
org.eclipse.emf.teneo.hibernate.HbSessionDataStore.buildSess ionFactory(HbSessionDataStore.java:171)
at
org.eclipse.emf.teneo.hibernate.HbSessionDataStore.initializ e(HbSessionDataStore.java:83)
at
mindmap.diagram.db.StoreController.initializeDataStore(Store Controller.java:117)
at
mindmap.diagram.part.MindmapDiagramEditorPlugin.start(Mindma pDiagramEditorPlugin.java:73)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:1009)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:1003)
... 54 more
my model manifest is as follow:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.gmf.examples.mindmap;singleton:=true
Bundle-Version: 1.0.0
Bundle-ClassPath: .
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Export-Package: mindmap,
mindmap.impl,
mindmap.util
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.emf.ecore;visibility:=reexport,
org.eclipse.emf.ecore.xmi;visibility:=reexport,
org.eclipse.emf.teneo.hibernate;bundle-version="1.0.1";visibility:=reexport,
org.hibernate.eclipse;bundle-version="3.2.4";visibility:=reexport,
org.eclipse.emf.teneo.hibernate.libraries;bundle-version="1.0.1 ";visibility:=reexport,
org.hibernate.eclipse.jdt.ui;bundle-version="3.2.4";visibility:=reexport,
org.hibernate.eclipse.mapper;bundle-version="3.2.4";visibility:=reexport,
org.eclipse.osgi.util;bundle-version="3.1.300";visibility:=reexport
Bundle-ActivationPolicy: lazy
Eclipse-BuddyPolicy: dependent
Eclipse-LazyStart: true
|
|
|
Re: Using GMF database editor [message #430162 is a reply to message #430160] |
Tue, 12 May 2009 16:39 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Yes and afaik this is a classloading issue. Did you set the dependency on the teneo.hibernate plugin as reexport?
gr. Martin
Alireza wrote:
> Ya, you are right, I should set it dependent and I did but I received
> the error mentioned in the tutorial:
>
> !ENTRY org.eclipse.equinox.registry 4 1 2009-05-12 17:37:25.704
> !MESSAGE Plug-in org.eclipse.gmf.examples.mindmap.diagram was unable to
> load class mindmap.diagram.db.OpenMindmapDBEditor.
> !STACK 0
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter $TerminatingClassNotFoundException:
> An error occurred while automatically activating bundle
> org.eclipse.gmf.examples.mindmap.diagram (2161).
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:125)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:427)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:193)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:370)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:446)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:399)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:387)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:87)
>
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:315)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1274)
>
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:160)
>
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:867)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
>
> at
> org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:267)
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
> at
> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:263)
>
> at
> org.eclipse.ui.internal.PluginAction.createDelegate(PluginAc tion.java:122)
> at
> org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:223)
> at
> org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPl uginAction.java:229)
>
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:583)
>
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:500)
>
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:411)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2384)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 00)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:490)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
> Caused by: org.osgi.framework.BundleException: Exception in
> mindmap.diagram.part.MindmapDiagramEditorPlugin.start() of bundle
> org.eclipse.gmf.examples.mindmap.diagram.
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:1028)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:984)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:346)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:265)
>
> at
> org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:400)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
>
> ... 49 more
> Caused by: org.hibernate.MappingException: Could not determine type for:
> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType,
> for columns: [org.hibernate.mapping.Column(econtainer_class),
> org.hibernate.mapping.Column(e_container)]
> at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:2 66)
> at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:2 53)
> at org.hibernate.mapping.Property.isValid(Property.java:185)
> at
> org.hibernate.mapping.PersistentClass.validate(PersistentCla ss.java:440)
> at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
> at org.hibernate.cfg.Configuration.validate(Configuration.java: 1102)
> at
> org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1287)
>
> at
> org.eclipse.emf.teneo.hibernate.HbSessionDataStore.buildSess ionFactory(HbSessionDataStore.java:171)
>
> at
> org.eclipse.emf.teneo.hibernate.HbSessionDataStore.initializ e(HbSessionDataStore.java:83)
>
> at
> mindmap.diagram.db.StoreController.initializeDataStore(Store Controller.java:117)
>
> at
> mindmap.diagram.part.MindmapDiagramEditorPlugin.start(Mindma pDiagramEditorPlugin.java:73)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:1009)
>
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:1003)
>
> ... 54 more
>
>
>
>
>
> my model manifest is as follow:
>
>
>
>
>
> Manifest-Version: 1.0
> Bundle-ManifestVersion: 2
> Bundle-Name: %pluginName
> Bundle-SymbolicName: org.eclipse.gmf.examples.mindmap;singleton:=true
> Bundle-Version: 1.0.0
> Bundle-ClassPath: .
> Bundle-Vendor: %providerName
> Bundle-Localization: plugin
> Bundle-RequiredExecutionEnvironment: JavaSE-1.6
> Export-Package: mindmap,
> mindmap.impl,
> mindmap.util
> Require-Bundle: org.eclipse.core.runtime,
> org.eclipse.emf.ecore;visibility:=reexport,
> org.eclipse.emf.ecore.xmi;visibility:=reexport,
> org.eclipse.emf.teneo.hibernate;bundle-version="1.0.1";visibility:=reexport,
>
> org.hibernate.eclipse;bundle-version="3.2.4";visibility:=reexport,
> org.eclipse.emf.teneo.hibernate.libraries;bundle-version="1.0.1 ";visibility:=reexport,
>
> org.hibernate.eclipse.jdt.ui;bundle-version="3.2.4";visibility:=reexport,
> org.hibernate.eclipse.mapper;bundle-version="3.2.4";visibility:=reexport,
> org.eclipse.osgi.util;bundle-version="3.1.300";visibility:=reexport
> Bundle-ActivationPolicy: lazy
> Eclipse-BuddyPolicy: dependent
> Eclipse-LazyStart: true
>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
| |
Re: Using GMF database editor [message #430166 is a reply to message #430164] |
Tue, 12 May 2009 17:40 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
And the eclipse buddy policy of the plugin with hibernate libraries is set to dependent?
gr. Martin
Alireza wrote:
> Ya, I did:
>
> Require-Bundle: org.eclipse.core.runtime,
> org.eclipse.emf.ecore;visibility:=reexport,
> org.eclipse.emf.ecore.xmi;visibility:=reexport,
> org.eclipse.emf.teneo.hibernate;bundle-version="1.0.1";visibility:=reexport,
>
> org.hibernate.eclipse;bundle-version="3.2.4";visibility:=reexport,
> org.eclipse.emf.teneo.hibernate.libraries;bundle-version="1.0.1 ";visibility:=reexport,
>
> org.eclipse.osgi.util;bundle-version="3.1.300";visibility:=reexport
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
| |
Re: Using GMF database editor [message #430169 is a reply to message #430167] |
Tue, 12 May 2009 18:29 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Is this the manifest.mf of the plugin containing the hibernate3.jar file?
This manifest has a dependency on org.eclipse.emf.teneo.hibernate.libraries, what does this plugin contain?
Which plugin has the hibernate3.jar file?
gr. Martin
Alireza wrote:
> Yes:
>
> Manifest-Version: 1.0
> Bundle-ManifestVersion: 2
> Bundle-Name: %pluginName
> Bundle-SymbolicName: org.eclipse.gmf.examples.mindmap;singleton:=true
> Bundle-Version: 1.0.0
> Bundle-ClassPath: .
> Bundle-Vendor: %providerName
> Bundle-Localization: plugin
> Bundle-RequiredExecutionEnvironment: JavaSE-1.6
> Export-Package: mindmap,
> mindmap.impl,
> mindmap.util
> Require-Bundle: org.eclipse.core.runtime,
> org.eclipse.emf.ecore;visibility:=reexport,
> org.eclipse.emf.ecore.xmi;visibility:=reexport,
> org.eclipse.emf.teneo.hibernate;bundle-version="1.0.1";visibility:=reexport,
>
> org.hibernate.eclipse;bundle-version="3.2.4";visibility:=reexport,
> org.eclipse.emf.teneo.hibernate.libraries;bundle-version="1.0.1 ";visibility:=reexport,
>
> org.eclipse.osgi.util;bundle-version="3.1.300";visibility:=reexport
> Bundle-ActivationPolicy: lazy
> Eclipse-BuddyPolicy: dependent
> Eclipse-LazyStart: true
>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
| | |
Re: Using GMF database editor [message #430186 is a reply to message #430173] |
Wed, 13 May 2009 06:38 |
Alireza Missing name Messages: 105 Registered: July 2009 |
Senior Member |
|
|
Yes, I also think there is something wrong with my hibernate or its
setting. I have install my hibernate from
http://download.jboss.org/jbosstools/updates/stable/. Now I have following
folders and jar files:
1- org.hibernate.eclipse_3.2.4.GA-R200903141626-H5 : antlr-2.7.6, asm,
asm-attrs, c3p0-0.9.1, cglib-2.1.3, commons-collections-2.1.1,
commons-logging-1.0.4, concurrent-1.3.2, connector, dom4j-1.6.1,
ehcache-1.2.3, hibernate3, jaas, javassist, jboss-cache, jboss-common,
jboss-jmx, jboss-system, jdbc2_0-stdext, jgroups-2.2.8, jta, log4j-1.2.15,
oscache-2.1, proxool-0.8.3, swarmcache-1.0rc2, org.hibernate.eclipse (and
and annotations folder with several jars on it such as: ejb3-persistence,
hibernate-annotations, ...)
2- org.hibernate.eclipse.console_3.2.4.GA-R200903141626-H5:
org.hibernate.eclipse.console
3- org.hibernate.eclipse.help_3.2.4.GA-R200903141626-H5:
org.hibernate.eclipse.help_3.2.4.GA-R200903141626-H5: help
4- org.hibernate.eclipse.mapper_3.2.4.GA-R200903141626-H5:
org.hibernate.eclipse.mapper
|
|
| |
Re: Using GMF database editor [message #430188 is a reply to message #430186] |
Wed, 13 May 2009 06:41 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Okay, the org.hibernate.eclipse plugin should have Eclipse-BuddyPolicy set to dependent. If that's not possible then you
need to create your own hibernate plugin.
Then the model plugin needs to depend on this hibernate plugin (probably with reexport).
gr. Martin
Alireza wrote:
> Yes, I also think there is something wrong with my hibernate or its
> setting. I have install my hibernate from
> http://download.jboss.org/jbosstools/updates/stable/. Now I have
> following folders and jar files:
>
> 1- org.hibernate.eclipse_3.2.4.GA-R200903141626-H5 : antlr-2.7.6, asm,
> asm-attrs, c3p0-0.9.1, cglib-2.1.3, commons-collections-2.1.1,
> commons-logging-1.0.4, concurrent-1.3.2, connector, dom4j-1.6.1,
> ehcache-1.2.3, hibernate3, jaas, javassist, jboss-cache, jboss-common,
> jboss-jmx, jboss-system, jdbc2_0-stdext, jgroups-2.2.8, jta,
> log4j-1.2.15, oscache-2.1, proxool-0.8.3, swarmcache-1.0rc2,
> org.hibernate.eclipse (and and annotations folder with several jars on
> it such as: ejb3-persistence, hibernate-annotations, ...)
>
> 2- org.hibernate.eclipse.console_3.2.4.GA-R200903141626-H5:
> org.hibernate.eclipse.console
>
> 3- org.hibernate.eclipse.help_3.2.4.GA-R200903141626-H5:
> org.hibernate.eclipse.help_3.2.4.GA-R200903141626-H5: help
>
> 4- org.hibernate.eclipse.mapper_3.2.4.GA-R200903141626-H5:
> org.hibernate.eclipse.mapper
>
>
>
>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
| | | | |
Re: Using GMF database editor [message #430193 is a reply to message #430192] |
Wed, 13 May 2009 08:29 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Ali,
It should keep the database. You have to set the hibernate property: hibernate.hbm2ddl.auto, to one of the values:
update, create or validate. Maybe you have set it as create-drop now? Can you check the hibernate manual for more details?
Regarding storing more than one diagram. I think this is related to how gmf loads and stores the diagram (maybe always
uses the same name/url/id?). The database itself should be capable of storing more than one diagram. I don't really know
GMF good enough to help you out here.
gr. Martin
Alireza wrote:
> Dear Martin,
> It works!! Finally, we did it!! I made another plugin and put postgres
> jars in it. I really appreciate your patient and I am sorry for my
> stupid and naive questions sometimes :)
> I have questions:
>
> 1- This program only keeps one gmf diagram? Is it right? How can we
> extent it to more than one?
> 2- This program in each run create the db again, so the previous diagram
> will be disappeared. How can we prevent this?
>
> In general how can we save and load several diagram from db and keep
> them for long time?
>
>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
| |
Re: Using GMF database editor [message #430195 is a reply to message #430194] |
Wed, 13 May 2009 08:56 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Ali,
See comments inline
Alireza wrote:
>
>
> Hi Martin,
>
> 1- Did you ever consider the created tables? For example in this case it
> created 41 tables! Is there any rule or description for this? Is it
> related to teneo?
MT>> the diagram itself uses several tables, in addition GMF extends Ecore, therefore the whole ecore package itself is
also persisted resulting in additional tables.
> 2- Suppose that we have a db that contains information about topics: one
> tables shows what topics we have and the other one shows subtopics
> relationship between topics in the first tables. How can we load this
> data as a gmf diagram? Is it possible to do it?
MT>> I am pretty sure you can, you can read the (sub)topics using teneo and then link them somehow to the gmf diagram,
but I don't know how, I don't know GMF really.
>
> 3- about the annotations.xml, in case of this example we only have one
> shape, what about a more complicated model with different shapes?
MT>> You should also add your own model to the list of epackages when initializing the datastore then tables are created
for your custom model also.
>
>
> 4- How can I get more information about gmf load and other staff, any
> book, site or forum?
MT>> Gmf has a separate newsgroup: eclipse.modeling.gmf, their site:
http://www.eclipse.org/modeling/gmf/
>
> Best,
> Ali
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
| | | | |
Re: Using GMF database editor [message #430225 is a reply to message #430215] |
Wed, 13 May 2009 16:10 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
It means that they are busy with other things and/or that they don't know the answer right away, and/or that your
questions were not clear enough.
I checked out your post and I am not sure that they can answer your questions. I think that you have to dive in the
code, debug, understand what it does, analyse what happens, enable logging, check out what records are created in the
database. I think with that experience you are able to ask more detailed/focused questions which are maybe easier to
answer by others.
Regarding your second question in your post: Check out the elver.org website, check out the hibernate mapping generated
by teneo, also articles on ORM mapping in general can be of help.
gr. Martin
Alireza wrote:
> Dear Martin, I have send a post to gmf group, but have not receive any
> answer yet. What does that mean? Does it mean that nobody interested in
> the topic or ...? :(
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
| |
Re: Using GMF database editor [message #430244 is a reply to message #430243] |
Thu, 14 May 2009 09:19 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Ali,
It depends where you changed the min/max size. When you run your software from Eclipse (to debug/test) then you need to
set these values in the run configuration. Did you set them there?
For eclipse itself it is done in eclipse.ini in the eclipse installation folder (did you change it there?).
gr. Martin
Alireza wrote:
> Dear Martin,
> From yesterday, that we managed to run the program successfully, my
> eclipse started to give following error:
>
> Error occurred during initialization of VM
> Could not reserve enough space for object heap
>
> I have tried to fix it by changing the size of minimum and maximum
> memory, but it can be solved. I tried other program, and they work
> successfully.
> What do you think?
>
>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
| | | | | | | |
Re: Using GMF database editor [message #430322 is a reply to message #430316] |
Thu, 14 May 2009 21:11 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Ali,
I don't know GMF that well. For the EMF side what happens is this:
- the resource is saved
- the resource iterates over the root content of a resource and calls hibernate's save or update, as the root objects
are saved, the save/update automatically cascades to the children
- the resource iterates over the deleted objects of a resource and deletes them
Within hibernate the save or update walks over each object and creates insert/update sql statements, taking into account
object relations (so inserts/updates happen in the correct order). Hibernate accesses objects using EMF's dynamic api
(eGet, eSet).
gr. Martin
Alireza wrote:
> Dear Martin, Can you explain a little bit for me what happens when we
> press save button (e.g., when we create a diagram in the first step how
> it is passed to db?)?
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
| |
Re: Using GMF database editor [message #430327 is a reply to message #430325] |
Fri, 15 May 2009 10:05 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Ali,
I have no idea, I suggest you do some debugging to get some more detailed info.
gr. Martin
Alireza wrote:
>
> Dear Martin,
> I do not know what happen to this code! I created a new mindmap db this
> morning and I tried to save a mindmap digram, the save button works fine
> (no error), but when I opened the diagram from menu, it is empty!! The
> interesting point is, if I modify this empty db diagram and save it
> again, it can see the modified digram in the next load. What do think
> that happened to it?
>
> Best, Ali
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
| |
Goto Forum:
Current Time: Fri Apr 19 10:30:07 GMT 2024
Powered by FUDForum. Page generated in 0.05901 seconds
|