Class Captain


  • @Entity(name="Captain")
    public class Captain
    extends Object
    • Constructor Detail

      • Captain

        public Captain()
      • Captain

        public Captain​(String name)
    • Method Detail

      • getId

        public Long getId()
      • setId

        public void setId​(Long id)
      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • getShip

        public Ship getShip()
      • setShip

        public void setShip​(Ship ship)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object