@Entity
public class Office
extends Object
The
Office
class is an entity that represents an office, which is a place where
workers
can manages
Request
requests.
-
Field Summary
Fields
The unique identifier of this
Office
.
-
Constructor Summary
Constructors
-
Method Summary
final boolean
Equals method for
Office
class.
final int
Hash code method for
Office
class.
-
Field Details
-
id
The unique identifier of this
Office
.
-
name
@NonNull
private @NonNull String name
-
address
@NonNull
private @NonNull String address
-
-
-
-
Method Details
-
equals
public final boolean equals(Object o)
Equals method for
Office
class.
- Overrides:
equals
in class Object
- Parameters:
o
- The object to compare with this Office
.
- Returns:
true
if the given object is an instance of Office
and has the same
UUID
as this Office
, false
otherwise.
-
hashCode
public final int hashCode()
Hash code method for
Office
class.
- Overrides:
hashCode
in class Object
- Returns:
- The hash code of this
Office
.