Alex,

Thank you for your help. I am in fact using an old cut. By "crazy", I
meant "really amazing and cool". I was not sure the cmp engine could
handle a potentially ambiguous case. I was quite happily surprised, and
likewise quite happy with the performance improvement in directly
accessing the fk.

Thanks,
fawce

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alexey
Loubyansky
Sent: Sunday, July 06, 2003 8:05 AM
To: John Fawcett
Subject: Re: [JBoss-user] CMP persistent field using relationship-field
fk column


Hello John,

as to foreign key updates, I don't see it occuring. There is a testcase
in the testsuit and it passes (JBoss-3.2.2RC2).

* What JBoss version are you using?
* If it is not fresh, could you try to check out a fresh one and test
  again?

Thanks,

alex

Friday, July 04, 2003, 10:59:59 PM, John Fawcett wrote:

JF> Hi,

JF> I have a cmp question:

JF> We have bean that consists entirely of CMP relationship fields. When

JF> we xml-encode this entity bean's contents, we simply want the 
JF> primary key, and the foreign keys. In an effort to avoid loading the

JF> related beans, I've added persistent fields that point to the 
JF> fk-columns.

JF> Amazingly, this seems to work. However, after calling a finder and 
JF> then accessing the persistent fields of each bean that is returned, 
JF> I see an update called for every bean on the database log.

JF> First, is there a less crazy way to directly access the fk value 
JF> without loading the related bean?

JF> Secondly, why are there these "unnecessary" updates to the db, and 
JF> is it possible to avoid them?

JF> Thanks,
JF> fawce



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to