Hello,
I am using ObjectDB 2.2.8_08 with eclipse 3.6 and Groovy objects.
I am attempting to persist an instance of CultureRqst in the project com.epimss.lab by using a Connection class imported from the project com.epimss.admin.
I can access the database OK, but attempting to persist the CultureRqst leads to the following exceptions:
[ObjectDB 2.2.8_08] javax.jdo.JDOUserException Type com.epimss.lab.data.bacti.CultureRqst is not defined as an entity (@Entity is missing) (error 302) at com.objectdb.jdo.PMImpl.makePersistent(PMImpl.java:232) at javax.jdo.PersistenceManager$makePersistent.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at com.epimss.admin.db.Connection.store(Connection.groovy:579) at com.epimss.admin.db.Connection$store.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at com.epimss.lab.ui.bacti.CultureRqstWizard.performFinish(CultureRqstWizard.groovy:176) at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:811) at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:430) at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657) at org.eclipse.jface.window.Window.runEventLoop(Window.java:825) at org.eclipse.jface.window.Window.open(Window.java:801) at com.epimss.lab.handlers.OpenCultureRqstWizardHandler.execute(OpenCultureRqstWizardHandler.java:84) 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.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:47) at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:208) at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:185) at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:101) at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:135) at org.eclipse.e4.ui.workbench.renderers.swt.HandledMenuItemRenderer$1.widgetSelected(HandledMenuItemRenderer.java:150) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:713) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:633) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:106) at org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application.java:127) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) 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(EclipseStarter.java:369) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.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:620) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575) at org.eclipse.equinox.launcher.Main.run(Main.java:1408) at org.eclipse.equinox.launcher.Main.main(Main.java:1384)
The CultureRqst is shown below:
package com.epimss.lab.data.bacti import groovy.beans.Bindable import javax.inject.Inject import com.epimss.lab.data.misc.OtherRqst import com.epimss.lab.data.misc.RequestDateAndNumber; import com.epimss.lab.data.misc.SpecimenRqst; import javax.jdo.annotations.PersistenceCapable @Bindable @PersistenceCapable class CultureRqst { // Common Boolean candS = false Boolean gramStain = false Boolean fungal = false OtherRqst commonOtherRqsts = new OtherRqst() // Bacteria (Fastidious) Boolean afb = false Boolean bPertussis = false Boolean hPylori = false OtherRqst bacteriaOtherRqsts = new OtherRqst() // Fungal (Specific) Boolean blastomycosis = false Boolean coccidioidomycosis = false Boolean histoplasmosis = false OtherRqst fungalOtherRqsts = new OtherRqst() // Viral Boolean cmv = false Boolean enterovirus = false Boolean hsv = false OtherRqst viralOtherRqsts = new OtherRqst() SpecimenRqst specimenRqst = new SpecimenRqst(); RequestDateAndNumber requestDateAndNumber = new RequestDateAndNumber() } // end class Culture
I am using JDO, NOT JPA.
Thanks for any help.