Record Class SearchPropertyJoin
java.lang.Object
java.lang.Record
net.croz.nrich.search.api.model.property.SearchPropertyJoin
- Record Components:
parentProperty- Parent (root class) property name.childProperty- Child property name.
Represents a join between two entities. If entities are to be joined by another property (different from id). Then it needs to be specified.
-
Constructor Summary
ConstructorsConstructorDescriptionSearchPropertyJoin(String parentProperty, String childProperty) Creates an instance of aSearchPropertyJoinrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechildPropertyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theparentPropertyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SearchPropertyJoin
Creates an instance of aSearchPropertyJoinrecord class.- Parameters:
parentProperty- the value for theparentPropertyrecord componentchildProperty- the value for thechildPropertyrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
parentProperty
Returns the value of theparentPropertyrecord component.- Returns:
- the value of the
parentPropertyrecord component
-
childProperty
Returns the value of thechildPropertyrecord component.- Returns:
- the value of the
childPropertyrecord component
-