-
1. Re: PostCreate bug?!
adrian.brock Apr 21, 2003 1:54 PM (in response to kevin111)Show the code.
If this wasn't working CMR wouldn't be working.
Regards,
Adrian -
2. Re: PostCreate bug?!
kevin111 Apr 24, 2003 12:21 AM (in response to kevin111)First of all, thanks a lot for trying to help. :)
After hours of struggle, I finally figured out what is the problem:
I am using CMPand using MySQL. the entity bean's DB table contains something like this:
id -- auto-increment id
name -- unique column.
It seems like there some problem using database auto generated id as the primary key. The sever log would look like:
Create: pk= null
...
Then I got all kinds of problem from this. Now I switched to use name as the primary key for CMP, then everything works as desired.
Once again, thanks for the help.
Kevin -
3. Re: PostCreate bug?!
kevin111 Apr 24, 2003 12:47 AM (in response to kevin111)A follow-up question:
Is there a solution to my problem with id being the primary key? If possible, I would like to use it as primary key.