Package ejava.examples.orm.core
Class MowerPK
- java.lang.Object
-
- ejava.examples.orm.core.MowerPK
-
- All Implemented Interfaces:
Serializable
public class MowerPK extends Object implements Serializable
This is an example of a class that can be used for a Java Persistence IdClass. Its requirements are that it have a default ctor() and it correctly override hashCode() and equals(). Not annotations or orm.xml mappings are required for this specific class. All annotations and orm.xml entries are supplied by the classes this PK class identifies.- 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
-
-