Package org.hibernate.metamodel.mapping
Record Class AssociationKey
java.lang.Object
java.lang.Record
org.hibernate.metamodel.mapping.AssociationKey
Used as part of circularity detection
Uniquely distinguishes a side of the foreign-key, using that side's table and column(s)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAssociationKey(String table, List<String> columns) Creates an instance of aAssociationKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolumns()Returns the value of thecolumnsrecord component.final booleanIndicates whether some other object is "equal to" this one.getTable()Deprecated.final inthashCode()Returns a hash code value for this object.table()Returns the value of thetablerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AssociationKey
Creates an instance of aAssociationKeyrecord class.- Parameters:
table- the value for thetablerecord componentcolumns- the value for thecolumnsrecord component
-
-
Method Details
-
getTable
Deprecated. -
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). -
table
Returns the value of thetablerecord component.- Returns:
- the value of the
tablerecord component
-
columns
Returns the value of thecolumnsrecord component.- Returns:
- the value of the
columnsrecord component
-