-
1. Re: Why does this CMR code not work?
aloubyansky May 5, 2005 12:02 PM (in response to robertparis)CMR works only with local interfaces (read the spec). I don't know why the exception is about sql though.
-
2. Re: Why does this CMR code not work?
robertparis May 5, 2005 12:17 PM (in response to robertparis)Yeah, but look at my code again. I DO use Local interfaces only. I take the remote object, get the primary key and then use that to get a Local object via localFactory.findByPrimaryKey. Then I associate the local objects.
So I'm still stumped. -
3. Re: Why does this CMR code not work?
aloubyansky May 5, 2005 12:29 PM (in response to robertparis)Ahh.. right. Sorry. So find out why the driver doesn't like the sql.
-
4. Re: Why does this CMR code not work?
robertparis May 5, 2005 1:02 PM (in response to robertparis)It says it doesn't like it because "null" is being passed in for ID (I believe), but I don't know why that is getting passed
-
5. Re: Why does this CMR code not work?
robertparis May 5, 2005 9:38 PM (in response to robertparis)I figured it out!! Apparently, the word "POSITION" was causing the error. (I had been storing the position of the chapter in the book collection) It was being interpreted as a keyword. I didn't know Position was a SQL keyword. Where is that from?
Anyways, when I changed it to chapterPosition, everything worked!