Commit dc18856d authored by Martin Lowe's avatar Martin Lowe 🇨🇦 Committed by Martin Lowe
Browse files

Update employee count to be a string rather than a number

parent d4b965d2
......@@ -592,7 +592,7 @@ components:
type: string
description: The aggregate revenue of the organization and its affiliates
employee_count:
type: number
type: string
description: The number of employees for the given organization
address:
type: object
......@@ -625,7 +625,7 @@ components:
type: string
description: The aggregate revenue of the organization and its affiliates
employee_count:
type: number
type: string
description: The number of employees for the given organization
address:
type: object
......
......@@ -107,7 +107,7 @@ public class DataLoader {
o.setLegalName(RandomStringUtils.randomAlphabetic(4, 10));
o.setTwitterHandle(RandomStringUtils.randomAlphabetic(4, 10));
o.setAggregateRevenue(RandomStringUtils.randomNumeric(5, 10));
o.setEmployeeCount(200);
o.setEmployeeCount(RandomStringUtils.randomNumeric(5, 10));
Address a = new Address();
a.setCity(RandomStringUtils.randomAlphabetic(4, 10));
a.setCountry(RandomStringUtils.randomAlphabetic(4, 10));
......
......@@ -50,7 +50,7 @@ public class FormOrganization extends BareNode implements TargetedClone<FormOrga
private String legalName;
@JsonbProperty("twitter")
private String twitterHandle;
private Integer employeeCount;
private String employeeCount;
private String aggregateRevenue;
// form entity
......@@ -111,14 +111,14 @@ public class FormOrganization extends BareNode implements TargetedClone<FormOrga
/**
* @return the employeeCount
*/
public Integer getEmployeeCount() {
public String getEmployeeCount() {
return employeeCount;
}
/**
* @param employeeCount the employeeCount to set
*/
public void setEmployeeCount(Integer employeeCount) {
public void setEmployeeCount(String employeeCount) {
this.employeeCount = employeeCount;
}
......
......@@ -31,7 +31,7 @@ CREATE TABLE `FormOrganization` (
`legalName` varchar(255) DEFAULT NULL,
`twitterHandle` varchar(255) DEFAULT NULL,
`aggregateRevenue` varchar(255) DEFAULT NULL,
`employeeCount` int(10) unsigned DEFAULT NULL,
`employeeCount` varchar(255) DEFAULT NULL,
`form_id` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `UK_27vg3uhbmy3ev7ote4fjd4evl` (`form_id`),
......
......@@ -53,6 +53,8 @@ public class DtoHelper {
o.setForm(mf);
o.setLegalName(RandomStringUtils.randomAlphabetic(4, 10));
o.setTwitterHandle("@" + RandomStringUtils.randomAlphabetic(4, 10));
o.setAggregateRevenue(RandomStringUtils.randomNumeric(5, 10));
o.setEmployeeCount(RandomStringUtils.randomNumeric(5, 10));
Address a = new Address();
a.setCity(RandomStringUtils.randomAlphabetic(4, 10));
a.setCountry(RandomStringUtils.randomAlphabetic(4, 10));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment