Record Class HibernateEntityInfo
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.hibernate.model.HibernateEntityInfo
- Record Components:
name- JPA entity namehibernateEntityName- Hibernate entity namejavaType- entity Java typeidType- identifier typeattributeCount- number of mapped attributesattributes- mapped attributesstatistics- entity statistics
public record HibernateEntityInfo(String name, String hibernateEntityName, String javaType, String idType, int attributeCount, List<HibernateEntityAttributeInfo> attributes, HibernateEntityStatisticsInfo statistics)
extends Record
Hibernate entity metadata and runtime statistics.
-
Constructor Summary
ConstructorsConstructorDescriptionHibernateEntityInfo(String name, String hibernateEntityName, String javaType, String idType, int attributeCount, List<HibernateEntityAttributeInfo> attributes, HibernateEntityStatisticsInfo statistics) Creates an instance of aHibernateEntityInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theattributeCountrecord component.Returns the value of theattributesrecord 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 thehibernateEntityNamerecord component.idType()Returns the value of theidTyperecord component.javaType()Returns the value of thejavaTyperecord component.name()Returns the value of thenamerecord component.Returns the value of thestatisticsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HibernateEntityInfo
public HibernateEntityInfo(String name, String hibernateEntityName, String javaType, String idType, int attributeCount, List<HibernateEntityAttributeInfo> attributes, HibernateEntityStatisticsInfo statistics) Creates an instance of aHibernateEntityInforecord class.- Parameters:
name- the value for thenamerecord componenthibernateEntityName- the value for thehibernateEntityNamerecord componentjavaType- the value for thejavaTyperecord componentidType- the value for theidTyperecord componentattributeCount- the value for theattributeCountrecord componentattributes- the value for theattributesrecord componentstatistics- the value for thestatisticsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
-
hibernateEntityName
Returns the value of thehibernateEntityNamerecord component.- Returns:
- the value of the
hibernateEntityNamerecord component
-
javaType
-
idType
-
attributeCount
public int attributeCount()Returns the value of theattributeCountrecord component.- Returns:
- the value of the
attributeCountrecord component
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-
statistics
Returns the value of thestatisticsrecord component.- Returns:
- the value of the
statisticsrecord component
-