delombok.io.github.qsy7.print.model.PrintJob Maven / Gradle / Ivy
// Generated by delombok at Mon Dec 16 17:07:56 EST 2019
package io.github.qsy7.print.model;
import io.github.qsy7.datastore.api.model.entity.AbstractEntity;
import javax.persistence.*;
// @PersistenceCapable
@Entity
public class PrintJob extends AbstractEntity {
@ManyToOne(optional = false)
@JoinColumn(nullable = false, updatable = false)
protected Printer printer;
@ManyToOne(optional = false)
@JoinColumn(nullable = false, updatable = false)
protected PrintRequest printRequest;
@java.lang.SuppressWarnings("all")
public Printer getPrinter() {
return this.printer;
}
@java.lang.SuppressWarnings("all")
public PrintRequest getPrintRequest() {
return this.printRequest;
}
@java.lang.SuppressWarnings("all")
public void setPrinter(final Printer printer) {
this.printer = printer;
}
@java.lang.SuppressWarnings("all")
public void setPrintRequest(final PrintRequest printRequest) {
this.printRequest = printRequest;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof PrintJob)) return false;
final PrintJob other = (PrintJob) o;
if (!other.canEqual((java.lang.Object) this)) return false;
final java.lang.Object this$printer = this.getPrinter();
final java.lang.Object other$printer = other.getPrinter();
if (this$printer == null ? other$printer != null : !this$printer.equals(other$printer)) return false;
final java.lang.Object this$printRequest = this.getPrintRequest();
final java.lang.Object other$printRequest = other.getPrintRequest();
if (this$printRequest == null ? other$printRequest != null : !this$printRequest.equals(other$printRequest)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof PrintJob;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = 1;
final java.lang.Object $printer = this.getPrinter();
result = result * PRIME + ($printer == null ? 43 : $printer.hashCode());
final java.lang.Object $printRequest = this.getPrintRequest();
result = result * PRIME + ($printRequest == null ? 43 : $printRequest.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "PrintJob(printer=" + this.printer + ", printRequest=" + this.printRequest + ")";
}
@java.lang.SuppressWarnings("all")
public PrintJob(final Printer printer, final PrintRequest printRequest) {
this.printer = printer;
this.printRequest = printRequest;
}
@java.lang.SuppressWarnings("all")
public PrintJob() {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy