Class Ship


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

      • Ship

        public Ship()
      • Ship

        public Ship​(String name)
    • Method Detail

      • getId

        public Long getId()
      • setId

        public void setId​(Long id)
      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • getCaptain

        public Captain getCaptain()
      • setCaptain

        public void setCaptain​(Captain captain)
      • getPicture

        public byte[] getPicture()
      • setPicture

        public void setPicture​(byte[] picture)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object