Re: Key in object not propulated from Foreign key listed in reference-descriptor

"Thomas Dudziak" <[email protected]>
Newsgroups gmane.comp.jakarta.ojb.user
Message-ID <[email protected]>
On 8/11/06, Wright, Jim (NIH/CIT) [C] <[email protected]> wrote:

> I have a field in a class called IOS that is not getting populated from
> the foreign key definition in the scientist reference-descriptor shown
> in IOS class-descriptor.

My guess is that your problem stems from the fact that you use primary
key fields for your foreign key fields which often leads to problems.
In general you should not do that - if you change the reference to
another object, then the identity of your object will change as well
which is most certainly not what you want.
Rather use seperate non-PK fields for the references. Or if the Report
and Scientist classes link back to the IOS class (bi-directional
link), then use collections instead in the IOS class.

Tom
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.