It just say that there are two ways that you can use a composite id. In both cases you need a composite primary key class, but in the first case you expose the CompositePrimaryKeyClass in the second case you just expose the fields/properties on wish the Key it's composed.
We're gonna use the same class for both of the cases
As you could see above, the property names must match the property names in the id key class and you have to add the @Id annotation to each of the fields in the entity class itself. More info here.
posted 11 years ago
Good morning Angel, I just read your reply, it was exactly what I was looking for, because I couldn't understand the Theory properly due to the lack of a descriptive example. I get it now, and I hope I can continue with my learning with no further gaps that require explanation.
Good work! and thanks for your time answering my question,
Friends help you move. Good friends help you move bodies. This tiny ad will help:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop