Record Class OrderItemCollectionRecord
java.lang.Object
java.lang.Record
io.awspring.spring.data.examples.model.OrderItemCollectionRecord
@ItemCollectionView(tableName="Commerce",
partitionKey="pk",
sortKey="sk")
public record OrderItemCollectionRecord(@ItemCollectionMember(regex="^#PROFILE$") Customer customer, @ItemCollectionMember(regex="^ORDER#[^#]+$") Order order, @ItemCollectionMember(regex="^ORDER#[^#]+#ITEM#.+$") List<OrderItem> orderItemList)
extends Record
- Since:
- 1.0.0
- Author:
- Matej Nedic
-
Constructor Summary
ConstructorsConstructorDescriptionOrderItemCollectionRecord(Customer customer, Order order, List<OrderItem> orderItemList) Creates an instance of aOrderItemCollectionRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncustomer()Returns the value of thecustomerrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.order()Returns the value of theorderrecord component.Returns the value of theorderItemListrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OrderItemCollectionRecord
Creates an instance of aOrderItemCollectionRecordrecord class.- Parameters:
customer- the value for thecustomerrecord componentorder- the value for theorderrecord componentorderItemList- the value for theorderItemListrecord 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). -
customer
Returns the value of thecustomerrecord component.- Returns:
- the value of the
customerrecord component
-
order
Returns the value of theorderrecord component.- Returns:
- the value of the
orderrecord component
-
orderItemList
-