Class Website

    • Constructor Detail

      • Website

        public Website()
      • Website

        public Website​(String url)
      • Website

        public Website​(String url,
                       nl.vpro.domain.media.support.OwnerType owner)
      • Website

        public Website​(Website source)
    • Method Detail

      • setId

        public void setId​(Long id)
        Under normal operation this should not be used!

        While testing it sometimes comes in handy to be able to set an Id to simulate a persisted object.

        Parameters:
        id -
      • equals

        public boolean equals​(Object object)
        Checks for database identity or object identity if one side of the comparison can not supply a database identity. It is advised to override this method with a more accurate test which should not rely on database identity. You can rely on this criterion when equality can not be deducted programmatic and a real and final check is in need of human interaction. In essence this check then states that two objects are supposed to be different if they can't supply the same database Id.
        Overrides:
        equals in class Object
        Parameters:
        object - the object to compare with
        Returns:
        true if both objects are equal
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getUrl

        public String getUrl()
      • setUrl

        public void setUrl​(String url)
      • getOwner

        public nl.vpro.domain.media.support.OwnerType getOwner()
        Specified by:
        getOwner in interface nl.vpro.domain.media.support.Ownable
      • setOwner

        public void setOwner​(nl.vpro.domain.media.support.OwnerType owner)
        Specified by:
        setOwner in interface nl.vpro.domain.media.support.MutableOwnable