Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » @ManyToMany kind of working...
@ManyToMany kind of working... [message #588792] Wed, 24 May 2006 14:33
Kevin Sutter is currently offline Kevin SutterFriend
Messages: 106
Registered: July 2009
Senior Member
Hi,
The @ManyToMany relationship is sort of being recognized. The following
code snippet (part of the Kodo tutorial) is properly recognized when
generating the ddl. That is, it created the RABBIT_CHILDREN table just
fine.

@ManyToMany
@JoinTable(name="RABBIT_CHILDREN",
joinColumns=@JoinColumn(name="PARENT_ID"),
inverseJoinColumns=@JoinColumn(name="CHILD_ID"))
private Set<Rabbit> children = new HashSet<Rabbit> ();

But, the Persistence Properties panel is still confused. That panel
doesn't show the name of any join table and, of course, it doesn't show
any of the join columns. (One time, the Persistence Panel actually came
up as Transient. When I changed it to ManyToMany, the panels came back to
"normal" -- minus the join table information mentioned earlier.)

If I try to type in the values on the Persistence Properties panel, I get
an NPE when I click to add a join column...

java.lang.NullPointerException
at
org.eclipse.dali.ui.views.JoinColumnInJoinTableDialog.popula teNameCombo(JoinColumnInJoinTableDialog.java:101)
at
org.eclipse.dali.ui.views.JoinColumnInJoinTableDialog.create DialogArea(JoinColumnInJoinTableDialog.java:76)
at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java: 802)
at org.eclipse.jface.window.Window.create(Window.java:426)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1124)
at org.eclipse.jface.window.Window.open(Window.java:785)
at
org.eclipse.dali.ui.views.JoinTableComposite.addJoinColumnFr omDialog(JoinTableComposite.java:427)
at
org.eclipse.dali.ui.views.JoinTableComposite.addJoinColumn(J oinTableComposite.java:423)
at
org.eclipse.dali.ui.views.JoinTableComposite.access$2(JoinTa bleComposite.java:421)
at
org.eclipse.dali.ui.views.JoinTableComposite$2.widgetSelecte d(JoinTableComposite.java:177)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:925)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)

Thanks for any insights,
Kevin
Previous Topic:Couple of problems with generated ddl
Next Topic:problems with jdt...
Goto Forum:
  


Current Time: Fri Apr 19 21:55:53 GMT 2024

Powered by FUDForum. Page generated in 0.03079 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top