Created
April 23, 2018 01:34
-
-
Save vichu/caa6ef609aa6f025f0cd7553406ddd8e to your computer and use it in GitHub Desktop.
Lombok compiled class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.indywiz.springorama.springintegration.model; | |
import javax.persistence.Entity; | |
import javax.persistence.Id; | |
@Entity | |
public class Person { | |
@Id | |
private Long personId; | |
private String personName; | |
private String personPhoneNumber; | |
public static Person.PersonBuilder builder() { | |
return new Person.PersonBuilder(); | |
} | |
public Long getPersonId() { | |
return this.personId; | |
} | |
public String getPersonName() { | |
return this.personName; | |
} | |
public String getPersonPhoneNumber() { | |
return this.personPhoneNumber; | |
} | |
public void setPersonId(Long personId) { | |
this.personId = personId; | |
} | |
public void setPersonName(String personName) { | |
this.personName = personName; | |
} | |
public void setPersonPhoneNumber(String personPhoneNumber) { | |
this.personPhoneNumber = personPhoneNumber; | |
} | |
public boolean equals(Object o) { | |
if (o == this) { | |
return true; | |
} else if (!(o instanceof Person)) { | |
return false; | |
} else { | |
Person other = (Person)o; | |
if (!other.canEqual(this)) { | |
return false; | |
} else { | |
label47: { | |
Object this$personId = this.getPersonId(); | |
Object other$personId = other.getPersonId(); | |
if (this$personId == null) { | |
if (other$personId == null) { | |
break label47; | |
} | |
} else if (this$personId.equals(other$personId)) { | |
break label47; | |
} | |
return false; | |
} | |
Object this$personName = this.getPersonName(); | |
Object other$personName = other.getPersonName(); | |
if (this$personName == null) { | |
if (other$personName != null) { | |
return false; | |
} | |
} else if (!this$personName.equals(other$personName)) { | |
return false; | |
} | |
Object this$personPhoneNumber = this.getPersonPhoneNumber(); | |
Object other$personPhoneNumber = other.getPersonPhoneNumber(); | |
if (this$personPhoneNumber == null) { | |
if (other$personPhoneNumber != null) { | |
return false; | |
} | |
} else if (!this$personPhoneNumber.equals(other$personPhoneNumber)) { | |
return false; | |
} | |
return true; | |
} | |
} | |
} | |
protected boolean canEqual(Object other) { | |
return other instanceof Person; | |
} | |
public int hashCode() { | |
int PRIME = true; | |
int result = 1; | |
Object $personId = this.getPersonId(); | |
int result = result * 59 + ($personId == null ? 43 : $personId.hashCode()); | |
Object $personName = this.getPersonName(); | |
result = result * 59 + ($personName == null ? 43 : $personName.hashCode()); | |
Object $personPhoneNumber = this.getPersonPhoneNumber(); | |
result = result * 59 + ($personPhoneNumber == null ? 43 : $personPhoneNumber.hashCode()); | |
return result; | |
} | |
public String toString() { | |
return "Person(personId=" + this.getPersonId() + ", personName=" + this.getPersonName() + ", personPhoneNumber=" + this.getPersonPhoneNumber() + ")"; | |
} | |
public Person() { | |
} | |
public Person(Long personId, String personName, String personPhoneNumber) { | |
this.personId = personId; | |
this.personName = personName; | |
this.personPhoneNumber = personPhoneNumber; | |
} | |
public static class PersonBuilder { | |
private Long personId; | |
private String personName; | |
private String personPhoneNumber; | |
PersonBuilder() { | |
} | |
public Person.PersonBuilder personId(Long personId) { | |
this.personId = personId; | |
return this; | |
} | |
public Person.PersonBuilder personName(String personName) { | |
this.personName = personName; | |
return this; | |
} | |
public Person.PersonBuilder personPhoneNumber(String personPhoneNumber) { | |
this.personPhoneNumber = personPhoneNumber; | |
return this; | |
} | |
public Person build() { | |
return new Person(this.personId, this.personName, this.personPhoneNumber); | |
} | |
public String toString() { | |
return "Person.PersonBuilder(personId=" + this.personId + ", personName=" + this.personName + ", personPhoneNumber=" + this.personPhoneNumber + ")"; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment