Class Setting

java.lang.Object
io.github.xezzon.zeroweb.setting.Setting
All Implemented Interfaces:
io.github.xezzon.zeroweb.common.jpa.IEntity<String>

@Entity public class Setting extends Object implements io.github.xezzon.zeroweb.common.jpa.IEntity<String>

业务参数实体类

用于存储和管理系统中各种业务参数,包括系统配置、业务规则等。 支持JSON格式的参数值和参数约束定义。

Author:
xezzon
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    convertValueTo(tools.jackson.core.type.TypeReference<T> type)
    将参数值转换为指定的类型。

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.github.xezzon.zeroweb.common.jpa.IEntity

    getId
  • Constructor Details

    • Setting

      public Setting()
  • Method Details

    • convertValueTo

      public <T> T convertValueTo(tools.jackson.core.type.TypeReference<T> type)

      将参数值转换为指定的类型。

      慎用!可能会有性能问题。

      Type Parameters:
      T - 转换的类型
      Parameters:
      type - 转换的类型
      Returns:
      转换后的对象