Record Class DeliveryDriverWkt
java.lang.Object
java.lang.Record
io.micronaut.data.tck.jdbc.entities.geo.DeliveryDriverWkt
@MappedEntity
public record DeliveryDriverWkt(Long id, @NotBlank String name, @NotNull DeliveryDriverWkt.Status status, @NotNull Point location)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDeliveryDriverWkt(Long id, @NotBlank String name, @NotNull DeliveryDriverWkt.Status status, @NotNull Point location) Creates an instance of aDeliveryDriverWktrecord class.DeliveryDriverWkt(String name, DeliveryDriverWkt.Status status, Point location) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.@NotNull Pointlocation()Returns the value of thelocationrecord component.@NotBlank Stringname()Returns the value of thenamerecord component.@NotNull DeliveryDriverWkt.Statusstatus()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DeliveryDriverWkt
-
DeliveryDriverWkt
public DeliveryDriverWkt(@Id Long id, @NotBlank @NotBlank String name, @NotNull @NotNull DeliveryDriverWkt.Status status, @NotNull @NotNull Point location) Creates an instance of aDeliveryDriverWktrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentstatus- the value for thestatusrecord componentlocation- the value for thelocationrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
location
@NotNull @Srid(value=4326, type=GEOGRAPHIC) @Index(columns="location") @MappedProperty(converter=GeometryWktConverter.class) public @NotNull Point location()Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-