So Person essentially has a compound primary key (person_id and customer_id) since it is using a foreign key CMR relationship. But, I also need a CMR relationship between Person and Schedule, in which case the person_schedule relation table would contain person_id, customer_id, and schedule_id as its primary key. How can I accomplish this with CMR?

What are the entity beans and jbossjdbc-cmp.xml supposed to look like?