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 we
JF> xml-encode this entity bean's contents, we simply want the primary key,
JF> and the foreign keys. In an effort to avoid loading the related beans,
JF> I've added persistent fields that point to the fk-columns. 

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

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

JF> Secondly, why are there these "unnecessary" updates to the db, and is it
JF> 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

Reply via email to