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:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Website
copy(Website source)
boolean
equals(Object object)
Checks for database identity or object identity if one side of the comparison can not supply a database identity.String
get()
Long
getId()
nl.vpro.domain.media.support.OwnerType
getOwner()
String
getUrl()
int
hashCode()
void
setId(Long id)
Under normal operation this should not be used!void
setOwner(nl.vpro.domain.media.support.OwnerType owner)
void
setUrl(String url)
String
toString()
void
update(Website from)
Copies all fields from argument
-
-
-
Method Detail
-
getId
public Long getId()
- Specified by:
getId
in interfaceIdentifiable<Long>
-
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
-
-
update
public void update(Website from)
Description copied from interface:Updatable
Copies all fields from argument
-
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.
-
getUrl
public String getUrl()
-
setUrl
public void setUrl(String url)
-
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
-
-