Package com.alpaca.entity
Class Advertiser
java.lang.Object
com.alpaca.entity.Advertiser
Represents an Advertiser entity in the system. This entity is mapped to the "advertisers" table
in the database and stores details about businesses or individuals promoting content. It includes
information about their title, description, location, and verification status.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
URL of the Advertiser's avatar image.private String
URL of the banner image associated with the Advertiser.private String
A brief description of the Advertiser.private UUID
Unique identifier for the Advertiser.private boolean
Indicates whether the Advertiser is indexed for public search.private boolean
Indicates whether the Advertiser has a paid subscription or promotion.private String
Publicly visible location of the Advertiser.private String
URL link to the Advertiser's public location.private String
The title or name of the Advertiser.private User
The User associated with the Advertiser entity.private boolean
Indicates whether the Advertiser is verified. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
id
Unique identifier for the Advertiser. This value is automatically generated using a UUID strategy. -
title
The title or name of the Advertiser. This field cannot be null. -
description
A brief description of the Advertiser. This field cannot be null. -
bannerUrl
URL of the banner image associated with the Advertiser. This field cannot be null. -
avatarUrl
URL of the Advertiser's avatar image. This field cannot be null. -
publicLocation
Publicly visible location of the Advertiser. This field cannot be null. -
publicUrlLocation
URL link to the Advertiser's public location. This field cannot be null. -
indexed
private boolean indexedIndicates whether the Advertiser is indexed for public search. -
paid
private boolean paidIndicates whether the Advertiser has a paid subscription or promotion. -
verified
private boolean verifiedIndicates whether the Advertiser is verified. -
user
The User associated with the Advertiser entity. A one-to-one relationship exists between User and Advertiser.
-
-
Constructor Details
-
Advertiser
public Advertiser(String title, String description, String bannerUrl, String avatarUrl, String publicLocation, String publicUrlLocation, boolean indexed, boolean paid, boolean verified, User user) Constructs an instance of a new Advertiser object with the specified attributes. The generated object is ready to be used and stored in the database.- Parameters:
title
- Title name - must not be nulldescription
- Short description of the Advertiser - must not be nullbannerUrl
- URL of the Advertiser's banner image - must not be nullavatarUrl
- URL of the Advertiser's avatar image - must not be nullpublicLocation
- Publicly visible location - must not be nullpublicUrlLocation
- URL of the public location - must not be nullindexed
- indicates whether the Advertiser is indexed for public searchpaid
- indicates whether the Advertiser has a paid subscriptionverified
- indicates whether the Advertiser is verifieduser
- the User associated with this Advertiser - must not be null
-
-
Method Details