Package com.vaadin.hilla.generator.model
Record Class EntityModel.Bean
java.lang.Object
java.lang.Record
com.vaadin.hilla.generator.model.EntityModel.Bean
- Record Components:
typeParameters- the names of the type parameters the declaration takes, which its properties refer tosuperTypes- the types the declaration extends, which hold the properties this one inherits rather than declaresdiscriminator- the property saying which subtype a value is, which is there for a type belonging to a polymorphic hierarchy
- All Implemented Interfaces:
EntityModel
- Enclosing interface:
EntityModel
public static record EntityModel.Bean(String javaClass, List<String> typeParameters, List<TypeModel.EntityRef> superTypes, List<PropertyModel> properties, Optional<EntityModel.Discriminator> discriminator)
extends Record
implements EntityModel
A type whose values are objects with properties.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.vaadin.hilla.generator.model.EntityModel
EntityModel.Bean, EntityModel.Builder, EntityModel.Discriminator, EntityModel.Enumeration -
Constructor Summary
ConstructorsConstructorDescriptionBean(String javaClass, List<String> typeParameters, List<TypeModel.EntityRef> superTypes, List<PropertyModel> properties, Optional<EntityModel.Discriminator> discriminator) Creates an instance of aBeanrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thediscriminatorrecord 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 thejavaClassrecord component.Returns the value of thepropertiesrecord component.Returns the value of thesuperTypesrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetypeParametersrecord component.
-
Constructor Details
-
Bean
public Bean(String javaClass, List<String> typeParameters, List<TypeModel.EntityRef> superTypes, List<PropertyModel> properties, Optional<EntityModel.Discriminator> discriminator) Creates an instance of aBeanrecord class.- Parameters:
javaClass- the value for thejavaClassrecord componenttypeParameters- the value for thetypeParametersrecord componentsuperTypes- the value for thesuperTypesrecord componentproperties- the value for thepropertiesrecord componentdiscriminator- the value for thediscriminatorrecord 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). -
javaClass
Returns the value of thejavaClassrecord component.- Specified by:
javaClassin interfaceEntityModel- Returns:
- the value of the
javaClassrecord component
-
typeParameters
Returns the value of thetypeParametersrecord component.- Returns:
- the value of the
typeParametersrecord component
-
superTypes
Returns the value of thesuperTypesrecord component.- Returns:
- the value of the
superTypesrecord component
-
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-
discriminator
Returns the value of thediscriminatorrecord component.- Returns:
- the value of the
discriminatorrecord component
-