Class ShipByPK


  • @Entity
    public class ShipByPK
    extends Ship
    This class is provides an example of an entity that implements hashCode/equals using its database assigned primary key. Note the PK is not assigned until the entity is inserted into the database -- so there will be a period of time prior to persist() when all instances of this class report the same hashCode/equals.
    • Constructor Detail

      • ShipByPK

        public ShipByPK()