users@glassfish.java.net

Re: JoinTable not always updated!!!???

From: <glassfish_at_javadesktop.org>
Date: Sun, 24 Jun 2007 09:24:13 PDT

Hi,

Yes in my previous post is where I show it.

GarageUpdateEntityBean ge = new GarageUpdateEntityBean();
ge.setGarageName( gu.getGarageName() );
ge.setUsageCount( gu.getCurrentCount() );

targetBean.getGarageUpdates().add( ge );

I'm not using the em directly or should I have to from my understanding. By adding the entity to the parents collection should be fine. And it does update the jointable but for less then half the records which is really strange.
[Message sent by forum member 'samdoyle' (samdoyle)]

http://forums.java.net/jive/thread.jspa?messageID=223699