Package com.vaadin.hilla.generator.model
Class EntityModel.Builder
java.lang.Object
com.vaadin.hilla.generator.model.EntityModel.Builder
- Enclosing interface:
EntityModel
What the walk says about an entity beyond the class it is written from
and the properties the walk carries below it, which is the target of the
node standing for the entity. The declaration is built from it once the
walk leaves the node, when the properties are known.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbean(String javaClass, List<String> typeParameters, List<TypeModel.EntityRef> superTypes, List<PropertyModel> properties) The declaration of a type whose values are objects with properties.The property saying which subtype of a polymorphic type a value is, which an entity has where it belongs to such a hierarchy.voidsetDiscriminator(EntityModel.Discriminator discriminator)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
getDiscriminator
The property saying which subtype of a polymorphic type a value is, which an entity has where it belongs to such a hierarchy. -
setDiscriminator
-
bean
public EntityModel.Bean bean(String javaClass, List<String> typeParameters, List<TypeModel.EntityRef> superTypes, List<PropertyModel> properties) The declaration of a type whose values are objects with properties. The discriminator is written as the ids it accepts rather than as the type the class declares it with, so it is left out of the properties: TypeScript would have the name twice.
-