Fix old enums being used in Postgres plugin. Build failed because of this.

This commit is contained in:
Shrikant Kandula 2020-04-08 12:45:18 +00:00
parent edf4043430
commit 91dd8bf5c3
2 changed files with 3 additions and 4 deletions

View File

@ -12,7 +12,7 @@ import org.springframework.data.mongodb.core.mapping.Document;
@Document
public class PEMCertificate {
String file;
UploadedFile file;
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
String password;

View File

@ -10,7 +10,6 @@ import lombok.NonNull;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.ObjectUtils;
import org.pf4j.Extension;
import org.pf4j.PluginException;
import org.pf4j.PluginWrapper;
import org.springframework.util.CollectionUtils;
import reactor.core.publisher.Mono;
@ -19,7 +18,7 @@ import java.sql.Connection;
import java.sql.*;
import java.util.*;
import static com.appsmith.external.models.Connection.Mode.ReadOnly;
import static com.appsmith.external.models.Connection.Mode.READ_ONLY;
@Slf4j
public class PostgresPlugin extends BasePlugin {
@ -130,7 +129,7 @@ public class PostgresPlugin extends BasePlugin {
try {
Connection connection = DriverManager.getConnection(url, properties);
connection.setReadOnly(ReadOnly.equals(datasourceConfiguration.getConnection().getMode()));
connection.setReadOnly(READ_ONLY.equals(datasourceConfiguration.getConnection().getMode()));
return connection;
} catch (SQLException e) {