Skip to content

Commit

Permalink
Domain to String
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonali Shakya authored and Sonali Shakya committed Dec 12, 2024
1 parent 8b593e9 commit 435f091
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ public class SessionDetails {
@Enumerated(EnumType.STRING)
private Type npType;
private String npId;
@Enumerated(EnumType.STRING)
private Code domain;
private String domain;
private String version;
@Enumerated(EnumType.STRING)
private SessionType sessionType;
Expand All @@ -32,16 +31,6 @@ public enum Type {
BAP, BPP
}

public enum Code {
METRO ("TRV11");

public final String domainCode;

Code(String domainCode) {
this.domainCode = domainCode;
}
}

public enum SessionType {
AUTOMATION, MANUAL
}
Expand Down Expand Up @@ -74,11 +63,11 @@ public void setNpId(String npId) {
}

@Column(name = "domain")
public Code getDomain() {
public String getDomain() {
return domain;
}

public void setDomain(Code domain) {
public void setDomain(String domain) {
this.domain = domain;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
spring.application.name=yugabyte-integration
spring.datasource.url=${DB_URL}
#spring.datasource.url=jdbc:postgresql://127.0.0.1:5433/my_app
#spring.datasource.url=${DB_URL}
spring.datasource.url=jdbc:postgresql://127.0.0.1:5433/my_app
spring.datasource.username=yugabyte
#spring.datasource.password=
spring.datasource.password=${DB_PASSWORD}
spring.datasource.password=
#spring.datasource.password=${DB_PASSWORD}
spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 435f091

Please sign in to comment.