Capgemini interview question

Write composite key mapping for hibernate