
com.github.dreamroute.mybatis.pro.service.entity.BaseEntity Maven / Gradle / Ivy
// Generated by delombok at Thu Dec 01 18:33:40 CST 2022
package com.github.dreamroute.mybatis.pro.service.entity;
public class BaseEntity extends IdEntity {
private Long createTime;
private String createUser;
@java.lang.SuppressWarnings("all")
public static abstract class BaseEntityBuilder> extends IdEntity.IdEntityBuilder {
@java.lang.SuppressWarnings("all")
private Long createTime;
@java.lang.SuppressWarnings("all")
private String createUser;
@java.lang.Override
@java.lang.SuppressWarnings("all")
protected abstract B self();
@java.lang.Override
@java.lang.SuppressWarnings("all")
public abstract C build();
@java.lang.SuppressWarnings("all")
public B createTime(final Long createTime) {
this.createTime = createTime;
return self();
}
@java.lang.SuppressWarnings("all")
public B createUser(final String createUser) {
this.createUser = createUser;
return self();
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "BaseEntity.BaseEntityBuilder(super=" + super.toString() + ", createTime=" + this.createTime + ", createUser=" + this.createUser + ")";
}
}
@java.lang.SuppressWarnings("all")
private static final class BaseEntityBuilderImpl extends BaseEntity.BaseEntityBuilder {
@java.lang.SuppressWarnings("all")
private BaseEntityBuilderImpl() {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
protected BaseEntity.BaseEntityBuilderImpl self() {
return this;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public BaseEntity build() {
return new BaseEntity(this);
}
}
@java.lang.SuppressWarnings("all")
protected BaseEntity(final BaseEntity.BaseEntityBuilder, ?> b) {
super(b);
this.createTime = b.createTime;
this.createUser = b.createUser;
}
@java.lang.SuppressWarnings("all")
public static BaseEntity.BaseEntityBuilder, ?> builder() {
return new BaseEntity.BaseEntityBuilderImpl();
}
@java.lang.SuppressWarnings("all")
public Long getCreateTime() {
return this.createTime;
}
@java.lang.SuppressWarnings("all")
public String getCreateUser() {
return this.createUser;
}
@java.lang.SuppressWarnings("all")
public void setCreateTime(final Long createTime) {
this.createTime = createTime;
}
@java.lang.SuppressWarnings("all")
public void setCreateUser(final String createUser) {
this.createUser = createUser;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "BaseEntity(createTime=" + this.getCreateTime() + ", createUser=" + this.getCreateUser() + ")";
}
@java.lang.SuppressWarnings("all")
public BaseEntity(final Long createTime, final String createUser) {
this.createTime = createTime;
this.createUser = createUser;
}
@java.lang.SuppressWarnings("all")
public BaseEntity() {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof BaseEntity)) return false;
final BaseEntity other = (BaseEntity) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) return false;
final java.lang.Object this$createTime = this.getCreateTime();
final java.lang.Object other$createTime = other.getCreateTime();
if (this$createTime == null ? other$createTime != null : !this$createTime.equals(other$createTime)) return false;
final java.lang.Object this$createUser = this.getCreateUser();
final java.lang.Object other$createUser = other.getCreateUser();
if (this$createUser == null ? other$createUser != null : !this$createUser.equals(other$createUser)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof BaseEntity;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = super.hashCode();
final java.lang.Object $createTime = this.getCreateTime();
result = result * PRIME + ($createTime == null ? 43 : $createTime.hashCode());
final java.lang.Object $createUser = this.getCreateUser();
result = result * PRIME + ($createUser == null ? 43 : $createUser.hashCode());
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy