|
|
|
@ -1,6 +1,9 @@ |
|
|
|
|
package me.bearns.fias.domain; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import lombok.EqualsAndHashCode; |
|
|
|
|
import lombok.ToString; |
|
|
|
|
|
|
|
|
|
import javax.persistence.*; |
|
|
|
|
import javax.xml.bind.annotation.*; |
|
|
|
|
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
|
|
|
@ -14,6 +17,8 @@ import java.util.GregorianCalendar; |
|
|
|
|
import java.util.Objects; |
|
|
|
|
import java.util.UUID; |
|
|
|
|
|
|
|
|
|
@EqualsAndHashCode |
|
|
|
|
@ToString |
|
|
|
|
@XmlAccessorType(XmlAccessType.FIELD) |
|
|
|
|
@XmlType(name = "") |
|
|
|
|
@Entity |
|
|
|
@ -203,68 +208,4 @@ public class Addrobj implements Serializable { |
|
|
|
|
this.aoid = aoid; |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean equals(Object o) { |
|
|
|
|
if (this == o) return true; |
|
|
|
|
if (o == null || getClass() != o.getClass()) return false; |
|
|
|
|
|
|
|
|
|
Addrobj addrobj = (Addrobj) o; |
|
|
|
|
|
|
|
|
|
if (livestatus != addrobj.livestatus) return false; |
|
|
|
|
if (divtype != addrobj.divtype) return false; |
|
|
|
|
if (!aoid.equals(addrobj.aoid)) return false; |
|
|
|
|
if (!aoguid.equals(addrobj.aoguid)) return false; |
|
|
|
|
if (formalname != null ? !formalname.equals(addrobj.formalname) : addrobj.formalname != null) return false; |
|
|
|
|
if (regioncode != null ? !regioncode.equals(addrobj.regioncode) : addrobj.regioncode != null) return false; |
|
|
|
|
if (autocode != null ? !autocode.equals(addrobj.autocode) : addrobj.autocode != null) return false; |
|
|
|
|
if (areacode != null ? !areacode.equals(addrobj.areacode) : addrobj.areacode != null) return false; |
|
|
|
|
if (citycode != null ? !citycode.equals(addrobj.citycode) : addrobj.citycode != null) return false; |
|
|
|
|
if (ctarcode != null ? !ctarcode.equals(addrobj.ctarcode) : addrobj.ctarcode != null) return false; |
|
|
|
|
if (placecode != null ? !placecode.equals(addrobj.placecode) : addrobj.placecode != null) return false; |
|
|
|
|
if (plancode != null ? !plancode.equals(addrobj.plancode) : addrobj.plancode != null) return false; |
|
|
|
|
if (streetcode != null ? !streetcode.equals(addrobj.streetcode) : addrobj.streetcode != null) return false; |
|
|
|
|
if (extrcode != null ? !extrcode.equals(addrobj.extrcode) : addrobj.extrcode != null) return false; |
|
|
|
|
if (sextcode != null ? !sextcode.equals(addrobj.sextcode) : addrobj.sextcode != null) return false; |
|
|
|
|
if (offname != null ? !offname.equals(addrobj.offname) : addrobj.offname != null) return false; |
|
|
|
|
if (postalcode != null ? !postalcode.equals(addrobj.postalcode) : addrobj.postalcode != null) return false; |
|
|
|
|
if (ifnsfl != null ? !ifnsfl.equals(addrobj.ifnsfl) : addrobj.ifnsfl != null) return false; |
|
|
|
|
if (terrifnsfl != null ? !terrifnsfl.equals(addrobj.terrifnsfl) : addrobj.terrifnsfl != null) return false; |
|
|
|
|
if (ifnsul != null ? !ifnsul.equals(addrobj.ifnsul) : addrobj.ifnsul != null) return false; |
|
|
|
|
if (terrifnsul != null ? !terrifnsul.equals(addrobj.terrifnsul) : addrobj.terrifnsul != null) return false; |
|
|
|
|
if (okato != null ? !okato.equals(addrobj.okato) : addrobj.okato != null) return false; |
|
|
|
|
if (oktmo != null ? !oktmo.equals(addrobj.oktmo) : addrobj.oktmo != null) return false; |
|
|
|
|
if (updatedate != null ? !updatedate.equals(addrobj.updatedate) : addrobj.updatedate != null) return false; |
|
|
|
|
if (shortname != null ? !shortname.equals(addrobj.shortname) : addrobj.shortname != null) return false; |
|
|
|
|
if (aolevel != null ? !aolevel.equals(addrobj.aolevel) : addrobj.aolevel != null) return false; |
|
|
|
|
if (parentguid != null ? !parentguid.equals(addrobj.parentguid) : addrobj.parentguid != null) return false; |
|
|
|
|
if (previd != null ? !previd.equals(addrobj.previd) : addrobj.previd != null) return false; |
|
|
|
|
if (nextid != null ? !nextid.equals(addrobj.nextid) : addrobj.nextid != null) return false; |
|
|
|
|
if (code != null ? !code.equals(addrobj.code) : addrobj.code != null) return false; |
|
|
|
|
if (plaincode != null ? !plaincode.equals(addrobj.plaincode) : addrobj.plaincode != null) return false; |
|
|
|
|
if (actstatus != null ? !actstatus.equals(addrobj.actstatus) : addrobj.actstatus != null) return false; |
|
|
|
|
if (centstatus != null ? !centstatus.equals(addrobj.centstatus) : addrobj.centstatus != null) return false; |
|
|
|
|
if (operstatus != null ? !operstatus.equals(addrobj.operstatus) : addrobj.operstatus != null) return false; |
|
|
|
|
if (currstatus != null ? !currstatus.equals(addrobj.currstatus) : addrobj.currstatus != null) return false; |
|
|
|
|
if (startdate != null ? !startdate.equals(addrobj.startdate) : addrobj.startdate != null) return false; |
|
|
|
|
if (enddate != null ? !enddate.equals(addrobj.enddate) : addrobj.enddate != null) return false; |
|
|
|
|
return normdoc != null ? normdoc.equals(addrobj.normdoc) : addrobj.normdoc == null; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public int hashCode() { |
|
|
|
|
return Objects.hashCode(aoid); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String toString() { |
|
|
|
|
return "Addrobj{" + |
|
|
|
|
"aoguid='" + aoguid + '\'' + |
|
|
|
|
", areacode='" + areacode + '\'' + |
|
|
|
|
", citycode='" + citycode + '\'' + |
|
|
|
|
", shortname='" + shortname + '\'' + |
|
|
|
|
", actstatus=" + actstatus + |
|
|
|
|
'}'; |
|
|
|
|
} |
|
|
|
|
} |