enlarged config value size
This commit is contained in:
@ -27,7 +27,7 @@ CAUTION: Do not modify this file unless you know what you are doing.
|
|||||||
<type name="varchar" length="200"/>
|
<type name="varchar" length="200"/>
|
||||||
</column>
|
</column>
|
||||||
<column name="config_value">
|
<column name="config_value">
|
||||||
<type name="varchar" length="200"/>
|
<type name="varchar" length="2000"/>
|
||||||
</column>
|
</column>
|
||||||
<constraint name="config_pk" type="pk-constr" table="public.config">
|
<constraint name="config_pk" type="pk-constr" table="public.config">
|
||||||
<columns names="application,config_key,config_key_account" ref-type="src-columns"/>
|
<columns names="application,config_key,config_key_account" ref-type="src-columns"/>
|
||||||
|
|||||||
@ -7,4 +7,5 @@ DROP TABLE IF EXISTS application_role CASCADE;
|
|||||||
DROP TABLE IF EXISTS application_permission CASCADE;
|
DROP TABLE IF EXISTS application_permission CASCADE;
|
||||||
DROP TABLE IF EXISTS application CASCADE;
|
DROP TABLE IF EXISTS application CASCADE;
|
||||||
DROP TABLE IF EXISTS account_history CASCADE;
|
DROP TABLE IF EXISTS account_history CASCADE;
|
||||||
DROP TABLE IF EXISTS mail_template CASCADE;
|
DROP TABLE IF EXISTS mail_template CASCADE;
|
||||||
|
DROP TABLE IF EXISTS api_key CASCADE;
|
||||||
@ -134,6 +134,21 @@ public class ConfigService implements Serializable {
|
|||||||
|
|
||||||
return configValue;
|
return configValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Lock(LockType.READ)
|
||||||
|
@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
|
||||||
|
public String getConfigValue(String configKey, String defaultValue, String accountName, boolean fallbackToSystem) throws ConfigException {
|
||||||
|
Account account = getAccount(accountName);
|
||||||
|
if (account == null) {
|
||||||
|
if (fallbackToSystem) {
|
||||||
|
return getConfigValue (configKey);
|
||||||
|
} else {
|
||||||
|
return defaultValue;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return getConfigValue (configKey, account, fallbackToSystem);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Lock(LockType.READ)
|
@Lock(LockType.READ)
|
||||||
@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
|
@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
|
||||||
|
|||||||
@ -71,7 +71,7 @@ public class ConfigEntity implements Serializable {
|
|||||||
|
|
||||||
@EmbeddedId
|
@EmbeddedId
|
||||||
protected ConfigEntityPK configPK;
|
protected ConfigEntityPK configPK;
|
||||||
@Size(max = 200)
|
@Size(max = 2000)
|
||||||
@Column(name = "config_value")
|
@Column(name = "config_value")
|
||||||
private String configValue;
|
private String configValue;
|
||||||
@Size(max = 200)
|
@Size(max = 200)
|
||||||
|
|||||||
Reference in New Issue
Block a user