Class NapsackPK
- java.lang.Object
-
- ejava.examples.orm.core.annotated.NapsackPK
-
- All Implemented Interfaces:
Serializable
@Embeddable public class NapsackPK extends Object implements Serializable
This class provides an example of a primary key class that can be embedded into the referenced class. The containing class will simply use an instance of this class rather than having separate fields that match the fields of this class.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private String
make
private String
model
private static long
serialVersionUID
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
make
private String make
-
model
private String model
-
-