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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.jmix.core.FileRef
     
     
     
    void
     
    void
    setDefaultAvatar(io.jmix.core.FileRef defaultAvatar)
     
    void
    setDefaultRole(String defaultRole)
     
    void
    setDescription(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

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • UserDefaultSettings

      public UserDefaultSettings()
  • Method Details

    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getDefaultAvatar

      public io.jmix.core.FileRef getDefaultAvatar()
    • setDefaultAvatar

      public void setDefaultAvatar(io.jmix.core.FileRef defaultAvatar)
    • setDefaultRole

      public void setDefaultRole(String defaultRole)
    • getDefaultRole

      public String getDefaultRole()
    • postConstruct

      @PostConstruct public void postConstruct()