Class Media
java.lang.Object
ch.bztf.m226blb1.Database.Entities.Media
Entity for managing the media.
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Media
protected Media()Default constructor. Used by JPA. -
Media
Constructor for creating a new media.- Parameters:
type
- The type of the media.url
- The url of the media.
-
-
Method Details
-
setUrl
Sets theurl
of the media.- Parameters:
url
- the new url- See Also:
-
setPost
Sets the post of the media. Will also remove from the old post and add to the new one.- Parameters:
post
- the new post- See Also:
-
equals
-
hashCode
public int hashCode() -
toString
-