Skip to content

Commit

Permalink
Combination of street and house number
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh1ku committed Jan 13, 2025
1 parent fb23c4c commit d7aacfd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ public class Address {
private String country;
private String state;
private String street;
private String streetNumber;
private String zipCode;

public long getId() {
Expand Down Expand Up @@ -61,12 +60,4 @@ public String getStreet() {
public void setStreet(String street) {
this.street = street;
}

public String getStreetNumber() {
return streetNumber;
}

public void setStreetNumber(String streetNumber) {
this.streetNumber = streetNumber;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ public static Address convertToJpa(app.hopps.commons.Address address) {
addressJpa.setZipCode(address.postalCode());
addressJpa.setState(address.state());
addressJpa.setCity(address.city());
addressJpa.setStreet(address.road());
addressJpa.setStreetNumber(address.houseNumber());
addressJpa.setStreet(address.road() + " " + address.houseNumber());
return addressJpa;
}

Expand All @@ -26,7 +25,6 @@ public static Address convertToJpa(TradeParty tradeParty) {
addressJpa.setState(null);
addressJpa.setCity(tradeParty.getLocation());
addressJpa.setStreet(tradeParty.getStreet());
addressJpa.setStreetNumber(null);
return addressJpa;
}
}

0 comments on commit d7aacfd

Please sign in to comment.