Show the code.
If this wasn't working CMR wouldn't be working.
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.
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.