Skip to main content



      Home
Home » Eclipse Projects » Dali » @ManyToMany kind of working...
@ManyToMany kind of working... [message #433971] Wed, 24 May 2006 10:33 Go to next message
Eclipse UserFriend
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
Re: @ManyToMany kind of working... [message #433972 is a reply to message #433971] Wed, 24 May 2006 11:46 Go to previous messageGo to next message
Eclipse UserFriend
We noticed this one after we put out the M3a build and actually put up a
new weekly build in case anyone came across this. Take a look at the
downloads page and get the latest build.

Karen
Re: @ManyToMany kind of working... [message #433974 is a reply to message #433972] Wed, 24 May 2006 12:15 Go to previous message
Eclipse UserFriend
Once again, you are on the money. This "dali-N-dali-200605191816.zip"
drop did the trick with the @ManyToMany Persistence panel. Thanks!

Kevin
Re: @ManyToMany kind of working... [message #588810 is a reply to message #433971] Wed, 24 May 2006 11:46 Go to previous message
Eclipse UserFriend
We noticed this one after we put out the M3a build and actually put up a
new weekly build in case anyone came across this. Take a look at the
downloads page and get the latest build.

Karen
Re: @ManyToMany kind of working... [message #588823 is a reply to message #433972] Wed, 24 May 2006 12:15 Go to previous message
Eclipse UserFriend
Once again, you are on the money. This "dali-N-dali-200605191816.zip"
drop did the trick with the @ManyToMany Persistence panel. Thanks!

Kevin
Previous Topic:Couple of problems with generated ddl
Next Topic:problems with jdt...
Goto Forum:
  


Current Time: Wed Jul 23 10:13:11 EDT 2025

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

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

Back to the top