try adding a @jboss.target-relation to the Calendar bean.
Hi, I've solved the problem thanks to Alex Loubyansky.
It was that there was a small bug in the cmr code.
Infact I had calendar field id set to 0; this caused workweek calendar_id field, being null.
This bug should be solved in current cvs.