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 to
superTypes - the types the declaration extends, which hold the properties this one inherits rather than declares
discriminator - 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.
  • Constructor Details

  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • javaClass

      public String javaClass()
      Returns the value of the javaClass record component.
      Specified by:
      javaClass in interface EntityModel
      Returns:
      the value of the javaClass record component
    • typeParameters

      public List<String> typeParameters()
      Returns the value of the typeParameters record component.
      Returns:
      the value of the typeParameters record component
    • superTypes

      public List<TypeModel.EntityRef> superTypes()
      Returns the value of the superTypes record component.
      Returns:
      the value of the superTypes record component
    • properties

      public List<PropertyModel> properties()
      Returns the value of the properties record component.
      Returns:
      the value of the properties record component
    • discriminator

      public Optional<EntityModel.Discriminator> discriminator()
      Returns the value of the discriminator record component.
      Returns:
      the value of the discriminator record component