Class UserSettings
java.lang.Object
de.bytestore.hostinger.entity.user.UserSettings
Represents the settings of a user within the application. Each instance of this class is
associated with a specific user and stores a key-value pair representing a particular
configuration or setting for that user.
Features:
- Each setting is uniquely identified by its ID.
- Settings are associated with a user, ensuring that configuration is specific to the user.
- A key is used to identify the specific setting.
- A value (optional) stores the data associated with the setting.
Relationships:
- Linked to the
User entity via a many-to-one relationship, ensuring that
settings belong to a specific user.
Entity Characteristics:
- Mapped to the database table "HOST_USER_SETTINGS".
- Includes a unique identifier (UUID) for the setting.
Constraints:
- Both the user and the key are mandatory fields.
- On deletion of the associated user, the corresponding settings are also removed
to maintain data consistency.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
UserSettings
public UserSettings()
-