Skip to content

Commit

Permalink
updates to change institution assests field from int to long
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickHSI committed Jun 19, 2020
1 parent e643832 commit 2fe1ce4
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Institution {
private Set<String> emailDomains;
private Respondent respondent;
private Parent parent;
private Integer assets;
private Long assets;
private Integer otherLenderCode;
private TopHolder topHolder;
private boolean hmdaFiler;
Expand Down Expand Up @@ -103,11 +103,11 @@ public void setParent(Parent parent) {
this.parent = parent;
}

public Integer getAssets() {
public Long getAssets() {
return assets;
}

public void setAssets(Integer assets) {
public void setAssets(Long assets) {
this.assets = assets;
}

Expand Down
2 changes: 1 addition & 1 deletion common/src/main/protobuf/institution.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ message InstitutionMessage {
repeated string emailDomains = 8;
RespondentMessage respondent = 9;
ParentMessage parent = 10;
int32 assets = 11;
int64 assets = 11;
int32 otherLenderCode = 12;
TopHolderMessage topHolder = 13;
bool hmdaFilter = 14;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ object Institution {
("emailDomains", i.emailDomains.asJson),
("respondent", i.respondent.asJson),
("parent", i.parent.asJson),
("assets", Json.fromInt(i.assets)),
("assets", Json.fromLong(i.assets)),
("otherLenderCode", Json.fromInt(i.otherLenderCode)),
("topHolder", i.topHolder.asJson),
("hmdaFiler", Json.fromBoolean(i.hmdaFiler)),
Expand All @@ -67,7 +67,7 @@ object Institution {
emailDomains <- c.downField("emailDomains").as[List[String]]
respondent <- c.downField("respondent").as[Respondent]
parent <- c.downField("parent").as[Parent]
assets <- c.downField("assets").as[Int]
assets <- c.downField("assets").as[Long]
otherLenderCode <- c.downField("otherLenderCode").as[Int]
topHolder <- c.downField("topHolder").as[TopHolder]
hmdaFiler <- c.downField("hmdaFiler").as[Boolean]
Expand Down Expand Up @@ -117,7 +117,7 @@ case class Institution(
emailDomains: Seq[String],
respondent: Respondent,
parent: Parent,
assets: Int,
assets: Long,
otherLenderCode: Int,
topHolder: TopHolder,
hmdaFiler: Boolean,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ object InstitutionCsvParser {
val respondentCity = values(10)
val parentIdRssd = values(11).toInt
val parentName = values(12)
val assets = values(13).toInt
val assets = values(13).toLong
val otherLenderCode = values(14).toInt
val topHolderIdRssd = values(15).toInt
val topHolderName = values(16)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ case class InstitutionEntity(
respondentCity: String = "",
parentIdRssd: Int = -1,
parentName: String = "",
assets: Int = 0,
assets: Long = 0,
otherLenderCode: Int = -1,
topHolderIdRssd: Int = -1,
topHolderName: String = "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ object InstitutionGenerators {
email <- emailListGen
respondent <- institutionRespondentGen
parent <- institutionParentGen
assets <- Gen.choose(Int.MinValue, Int.MaxValue)
assets <- Gen.choose(Long.MinValue, Long.MaxValue)
otherLenderCode <- Gen.choose(Int.MinValue, Int.MaxValue)
topHolder <- topHolderGen
hmdaFiler <- Gen.oneOf(true, false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ trait PublisherComponent2018 {
def respondentCity = column[String]("respondent_city")
def parentIdRssd = column[Int]("parent_id_rssd")
def parentName = column[String]("parent_name")
def assets = column[Int]("assets")
def assets = column[Long]("assets")
def otherLenderCode = column[Int]("other_lender_code")
def topHolderIdRssd = column[Int]("topholder_id_rssd")
def topHolderName = column[String]("topholder_name")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ trait PublisherComponent2019 {
def respondentCity = column[String]("respondent_city")
def parentIdRssd = column[Int]("parent_id_rssd")
def parentName = column[String]("parent_name")
def assets = column[Int]("assets")
def assets = column[Long]("assets")
def otherLenderCode = column[Int]("other_lender_code")
def topHolderIdRssd = column[Int]("topholder_id_rssd")
def topHolderName = column[String]("topholder_name")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ trait PublisherComponent2020 {
def respondentCity = column[String]("respondent_city")
def parentIdRssd = column[Int]("parent_id_rssd")
def parentName = column[String]("parent_name")
def assets = column[Int]("assets")
def assets = column[Long]("assets")
def otherLenderCode = column[Int]("other_lender_code")
def topHolderIdRssd = column[Int]("topholder_id_rssd")
def topHolderName = column[String]("topholder_name")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ case class InstitutionAltEntity(
respondentCity: String = "",
parentIdRssd: Int = -1,
parentName: String = "",
assets: Int = 0,
assets: Long = 0,
otherLenderCode: Int = -1,
topHolderIdRssd: Int = -1,
topHolderName: String = "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ case class InstitutionEntity(
respondentCity: String = "",
parentIdRssd: Int = -1,
parentName: String = "",
assets: Int = 0,
assets: Long = 0,
otherLenderCode: Int = -1,
topHolderIdRssd: Int = -1,
topHolderName: String = "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ trait InstitutionComponent {
def respondentCity = column[String]("respondent_city")
def parentIdRssd = column[Int]("parent_id_rssd")
def parentName = column[String]("parent_name")
def assets = column[Int]("assets")
def assets = column[Long]("assets")
def otherLenderCode = column[Int]("other_lender_code")
def topHolderIdRssd = column[Int]("topholder_id_rssd")
def topHolderName = column[String]("topholder_name")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ case class InstitutionEntity(
respondentCity: String = "",
parentIdRssd: Int = -1,
parentName: String = "",
assets: Int = 0,
assets: Long = 0,
otherLenderCode: Int = -1,
topHolderIdRssd: Int = -1,
topHolderName: String = "",
Expand Down

0 comments on commit 2fe1ce4

Please sign in to comment.