Java program to demonstrate the use of creating compound primary key for a table in Hibernate