My personal preference has been to use the @IdClass, but each scenario has specific curcumstances which may effect your choice.
Code:
@Entity
@IdClass(com.examscam.mappings.CompoundKey.class)
public class Fracture {
Here's a good tutorial on how to map compound primary keys with Hibernate and JPA:
http://www.hiberbook.com/HiberBookWeb/learn.jsp?tutorial=15usingcompoundprimarykeys
I always make my primary key classes toplevel classes, and not inner classes, or even non-public classes within the same Java class file as the associated instance. I recommend that people using composite primary keys do the same.
Good luck!