Package ejava.examples.orm.core.mapped
Class MakeModelPK
- java.lang.Object
-
- ejava.examples.orm.core.mapped.MakeModelPK
-
- All Implemented Interfaces:
Serializable
@Embeddable public class MakeModelPK 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. All fields will be mapped by the containing class.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private String
make
private String
model
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description MakeModelPK()
MakeModelPK(String make, String model)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
make
private String make
-
model
private String model
-
-