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)
-
Constructor Summary
ConstructorsConstructorDescriptionAssociationKey
(String table, List<String> columns) Creates an instance of aAssociationKey
record class. -
Method Summary
Modifier and TypeMethodDescriptioncolumns()
Returns the value of thecolumns
record component.final boolean
Indicates whether some other object is "equal to" this one.getTable()
Deprecated.final int
hashCode()
Returns a hash code value for this object.table()
Returns the value of thetable
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
AssociationKey
Creates an instance of aAssociationKey
record class.- Parameters:
table
- the value for thetable
record componentcolumns
- the value for thecolumns
record 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 thetable
record component.- Returns:
- the value of the
table
record component
-
columns
Returns the value of thecolumns
record component.- Returns:
- the value of the
columns
record component
-