Class TirePK

  • All Implemented Interfaces:
    Serializable

    public class TirePK
    extends Object
    implements Serializable
    This class provides an example of an IdClass used by a child entity in a many-to-one, bi-directional relationship where half of its primary key is derived form the parentId;
    See Also:
    Serialized Form
    • Constructor Detail

      • TirePK

        public TirePK()
      • TirePK

        public TirePK​(int carId,
                      TirePosition position)
    • Method Detail

      • getAutoId

        public int getAutoId()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object