Changed datamodel, integrated poll configuration into tenant meta data table

* updated sql scripts to update new collums
* updated coressponding JPA class TenantMetaData

Signed-off-by: Nonnenmacher Fabian <fabian.nonnenmacher@bosch-si.com>
This commit is contained in:
Fabian Nonnenmacher
2016-01-07 12:46:53 +01:00
committed by Nonnenmacher Fabian
parent acc0770d36
commit 1f9c6bfd72
4 changed files with 26 additions and 3 deletions

View File

@@ -13,8 +13,6 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
/** /**
* Defines the polling time for the controllers in HH:MM:SS notation. * Defines the polling time for the controllers in HH:MM:SS notation.
* *
*
*
*/ */
@ConfigurationProperties(prefix = "hawkbit.controller") @ConfigurationProperties(prefix = "hawkbit.controller")
@@ -38,5 +36,4 @@ public class ControllerPollProperties {
public void setPollingOverdueTime(final String pollingOverdue) { public void setPollingOverdueTime(final String pollingOverdue) {
this.pollingOverdueTime = pollingOverdue; this.pollingOverdueTime = pollingOverdue;
} }
} }

View File

@@ -60,6 +60,12 @@ public class TenantMetaData implements Serializable {
@Column(name = "tenant", nullable = false, length = 40) @Column(name = "tenant", nullable = false, length = 40)
private String tenant; private String tenant;
@Column(name = "polling_time", nullable = true, length = 10)
private String pollingTime;
@Column(name = "polling_overdue_time", nullable = true, length = 10)
private String pollingOverdueTime;
private String createdBy; private String createdBy;
private String lastModifiedBy; private String lastModifiedBy;
private Long createdAt; private Long createdAt;
@@ -256,4 +262,19 @@ public class TenantMetaData implements Serializable {
return true; return true;
} }
public String getPollingTime() {
return pollingTime;
}
public void setPollingTime(String pollingTime) {
this.pollingTime = pollingTime;
}
public String getPollingOverdueTime() {
return pollingOverdueTime;
}
public void setPollingOverdueTime(String pollingOverdueTime) {
this.pollingOverdueTime = pollingOverdueTime;
}
} }

View File

@@ -0,0 +1,2 @@
ALTER TABLE sp_tenant ADD polling_time varchar(10);
ALTER TABLE sp_tenant ADD polling_overdue_time varchar(10);

View File

@@ -0,0 +1,3 @@
ALTER TABLE sp_tenant ADD polling_time varchar(10);
ALTER TABLE sp_tenant ADD polling_overdue_time varchar(10);