Package nl.vpro.domain.media
Class Website
java.lang.Object
nl.vpro.domain.media.Website
- All Implemented Interfaces:
Serializable
,Supplier<String>
,Identifiable<Long>
,nl.vpro.domain.media.support.MutableOwnable
,nl.vpro.domain.media.support.Ownable
,Updatable<Website>
,UpdatableIdentifiable<Long,
Website>
@Entity
public class Website
extends Object
implements UpdatableIdentifiable<Long,Website>, Serializable, Supplier<String>, nl.vpro.domain.media.support.MutableOwnable
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Website
boolean
Checks for database identity or object identity if one side of the comparison can not supply a database identity.get()
getId()
nl.vpro.domain.media.support.OwnerType
getOwner()
getUrl()
int
hashCode()
void
Under normal operation this should not be used!void
setOwner
(nl.vpro.domain.media.support.OwnerType owner) void
toString()
void
Copies all fields from argument
-
Constructor Details
-
Website
public Website() -
Website
-
Website
-
Website
-
-
Method Details
-
copy
-
getId
- Specified by:
getId
in interfaceIdentifiable<Long>
-
setId
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
-
-
update
Description copied from interface:Updatable
Copies all fields from argument -
equals
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. -
hashCode
public int hashCode() -
get
-
toString
-
getUrl
-
setUrl
-
getOwner
public nl.vpro.domain.media.support.OwnerType getOwner()- Specified by:
getOwner
in interfacenl.vpro.domain.media.support.Ownable
-
setOwner
public void setOwner(nl.vpro.domain.media.support.OwnerType owner) - Specified by:
setOwner
in interfacenl.vpro.domain.media.support.MutableOwnable
-