Class UserDefaultSettings
java.lang.Object
io.jmix.appsettings.entity.AppSettingsEntity
de.bytestore.hostinger.entity.settings.UserDefaultSettings
- All Implemented Interfaces:
io.jmix.core.Entity,io.jmix.core.entity.JmixEntityEntryEnhanced,io.jmix.core.entity.JmixSettersEnhanced,Serializable,Cloneable,org.eclipse.persistence.descriptors.changetracking.ChangeTracker,org.eclipse.persistence.internal.descriptors.PersistenceEntity,org.eclipse.persistence.internal.descriptors.PersistenceObject,org.eclipse.persistence.internal.weaving.PersistenceWeaved,org.eclipse.persistence.internal.weaving.PersistenceWeavedChangeTracking,org.eclipse.persistence.internal.weaving.PersistenceWeavedFetchGroups,org.eclipse.persistence.queries.FetchGroupTracker
@Entity(name="host_UserDefaultSettings")
public class UserDefaultSettings
extends io.jmix.appsettings.entity.AppSettingsEntity
The UserDefaultSettings class represents a user's default settings in the system.
These settings include a default role, a default avatar file reference, and a description.
It is annotated with Jmix and JPA annotations to define its persistence and behavior.
The entity is persisted in a table `host_UserDefaultSettings` with an index on the `DEFAULT_ROLE` column.
Default values for some fields can be specified using the `@AppSettingsDefault` annotation.
This class extends the AppSettingsEntity base class.
Features:
- Stores the default role of a user.
- Maintains a reference to a default avatar file.
- Contains a user-provided description.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.appsettings.entity.AppSettingsEntity
io.jmix.appsettings.entity.AppSettingsEntity.JmixEntityEntry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.jmix.core.FileRefvoidvoidsetDefaultAvatar(io.jmix.core.FileRef defaultAvatar) voidsetDefaultRole(String defaultRole) voidsetDescription(String description) Methods inherited from class io.jmix.appsettings.entity.AppSettingsEntity
__copyEntityEntry, __getEntityEntry, _persistence_checkFetched, _persistence_checkFetchedForSet, _persistence_get, _persistence_getCacheKey, _persistence_getFetchGroup, _persistence_getId, _persistence_getPropertyChangeListener, _persistence_getSession, _persistence_isAttributeFetched, _persistence_new, _persistence_post_clone, _persistence_propertyChange, _persistence_resetFetchGroup, _persistence_set, _persistence_setCacheKey, _persistence_setFetchGroup, _persistence_setId, _persistence_setPropertyChangeListener, _persistence_setSession, _persistence_setShouldRefreshFetchGroup, _persistence_shallow_clone, _persistence_shouldRefreshFetchGroup, equals, getId, getVersion, hashCode, setId, setVersion, toString
-
Constructor Details
-
UserDefaultSettings
public UserDefaultSettings()
-
-
Method Details
-
getDescription
-
setDescription
-
getDefaultAvatar
public io.jmix.core.FileRef getDefaultAvatar() -
setDefaultAvatar
public void setDefaultAvatar(io.jmix.core.FileRef defaultAvatar) -
setDefaultRole
-
getDefaultRole
-
postConstruct
@PostConstruct public void postConstruct()
-