OK, looking at the repository.dtd file, it seems that reference descriptors cannot be a wrapper datatype (Integer). It must be primitive. Does that mean I can't have a nullable foreign key? I know that's unusual, but it's not that unusual.
Switching to an int made it work, but now it's required. Is there a way around this? Using a conversion? Jason On Wed, 2003-06-25 at 09:20, Jason McKerr wrote: > Hey guys, > > I'm having a problem with a nullable foreign-key column not getting > updated. > > I've got a table (Acknowledgements) that has a foreign key to the > Project table. > > Now if I have all of the columns set for acknowledgements (including > projectID) all of the columns except projectID are getting set when I > call store(). The projectID is getting set to null. > > If I comment out the reference call to Project from the Acknowledgement > table in my repository, the column gets set normally. > > So the question is: Can I not just do an insert without a complete > object reference? I'm doing a lot of this over serialized XML so it's > not cool to have to pass an object graph just to do an isnert on a minor > related table. > > Jason > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
