Is it necessary that composite-id should be mapped to class ??
can it be like this ?
If you have a composite key that contains relationships to other entities, do it like this: