In Java JPA, you can define composite keys of using the @EmbeddedId annotation. For example, you have a table called contact and you want to use the columns firstname and lastname as the composite keys.
Continue reading Java JPA – Using Composite Keys