Class ShipBySwitch


  • @Entity
    public class ShipBySwitch
    extends Ship
    This class is provides an example of an entity that implements hashCode/equals using its database assigned primary key if it exists and defaults to the java.lang.Object definition if not yet assigned. Note that this technique causes a change in hashCode/equals after the persist() takes place -- invalidating anything previously cached for the identity.
    • Constructor Detail

      • ShipBySwitch

        public ShipBySwitch()