Package io.jmix.datatools.datamodel
Record Class Relation
java.lang.Object
java.lang.Record
io.jmix.datatools.datamodel.Relation
- Record Components:
dataStore- the name of the data store where the relationship is definedreferencedClass- the fully qualified name of the class being referenced in the relationshiprelationDescription- a description providing details about the nature or purpose of the relationship
public record Relation(String dataStore, String referencedClass, String relationDescription)
extends Record
Represents a relationship between two entities in the data model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedataStorerecord 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 thereferencedClassrecord component.Returns the value of therelationDescriptionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Relation
Creates an instance of aRelationrecord class.- Parameters:
dataStore- the value for thedataStorerecord componentreferencedClass- the value for thereferencedClassrecord componentrelationDescription- the value for therelationDescriptionrecord 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). -
dataStore
Returns the value of thedataStorerecord component.- Returns:
- the value of the
dataStorerecord component
-
referencedClass
Returns the value of thereferencedClassrecord component.- Returns:
- the value of the
referencedClassrecord component
-
relationDescription
Returns the value of therelationDescriptionrecord component.- Returns:
- the value of the
relationDescriptionrecord component
-