Class ItemPK

  • All Implemented Interfaces:
    Serializable

    @Embeddable
    public class ItemPK
    extends Object
    implements Serializable
    This class provides an example primary key class for a child entity that derives one of its primary key values from its parent entity in a many-to-one relationship.
    See Also:
    Serialized Form
    • Field Detail

      • typeId

        private int typeId
      • number

        private int number
    • Constructor Detail

      • ItemPK

        public ItemPK()
    • Method Detail

      • getTypeId

        public int getTypeId()
      • setTypeId

        public ItemPK setTypeId​(int typeId)
      • getNumber

        public int getNumber()
      • setNumber

        public ItemPK setNumber​(int number)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object