Class ManyToAnyCollectionProperty<E,T>

java.lang.Object
org.fastnate.generator.context.Property<E,Collection<T>>
org.fastnate.generator.context.PluralProperty<E,Collection<T>,T>
org.fastnate.generator.context.CollectionProperty<E,T>
org.fastnate.hibernate.ManyToAnyCollectionProperty<E,T>
Type Parameters:
E - The type of the container entity
T - The base type of the target entity

public class ManyToAnyCollectionProperty<E,T> extends org.fastnate.generator.context.CollectionProperty<E,T>
Describes a property of an EntityClass that references a collection of entities according to a ManyToAny mapping.
Author:
Tobias Liefke
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.fastnate.generator.context.PluralProperty

    org.fastnate.generator.context.PluralProperty.EntityMappingInformation
  • Constructor Summary

    Constructors
    Constructor
    Description
    ManyToAnyCollectionProperty(org.fastnate.generator.context.EntityClass<?> sourceClass, org.fastnate.generator.context.AttributeAccessor attribute, jakarta.persistence.AssociationOverride associationOverride, jakarta.persistence.AttributeOverride attributeOverride)
    Creates a new collection property that is mapped with ManyToAny.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.fastnate.generator.context.PluralProperty.EntityMappingInformation
    findEntityMappingInformation(org.fastnate.generator.context.AttributeAccessor attribute, jakarta.persistence.AssociationOverride associationOverride, int valueClassParamIndex)
     
    protected void
    writeValueExpression(org.fastnate.generator.statements.TableStatement statement, T value, org.fastnate.generator.statements.ColumnExpression expression)
     

    Methods inherited from class org.fastnate.generator.context.CollectionProperty

    createPostInsertStatements, findReferencedEntities, getKeyColumn, getOrderColumn, getValue, isCollectionProperty

    Methods inherited from class org.fastnate.generator.context.PluralProperty

    addInsertExpression, buildEmbeddedProperties, buildIdColumn, createDirectValueStatement, createValueExpression, createValueStatement, generatePendingStatements, getContext, getDialect, getEmbeddedProperties, getEmbeddedPropertiesByName, getIdColumn, getInverseProperty, getMappedBy, getMappedId, getPropertyArgument, getRequiredEmbeddedProperties, getTable, getValueClass, getValueColumn, getValueConstructor, getValueConverter, getValueEntityClass, hasPluralAnnotation, isComposition, isEmbedded, isEntityReference, isRequired, isTableColumn, isUseTargetTable, newElement

    Methods inherited from class org.fastnate.generator.context.Property

    createPreInsertStatements, failIfRequired, getAttribute, getExpression, getName, getPredicate, getType, isComposition, setValue, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ManyToAnyCollectionProperty

      public ManyToAnyCollectionProperty(org.fastnate.generator.context.EntityClass<?> sourceClass, org.fastnate.generator.context.AttributeAccessor attribute, jakarta.persistence.AssociationOverride associationOverride, jakarta.persistence.AttributeOverride attributeOverride)
      Creates a new collection property that is mapped with ManyToAny.
      Parameters:
      sourceClass - the description of the current inspected class that contains this property
      attribute - accessor to the represented attribute
      associationOverride - the configured assocation override
      attributeOverride - the configured attribute override, if we reference an ElementCollection
  • Method Details

    • findEntityMappingInformation

      protected org.fastnate.generator.context.PluralProperty.EntityMappingInformation findEntityMappingInformation(org.fastnate.generator.context.AttributeAccessor attribute, jakarta.persistence.AssociationOverride associationOverride, int valueClassParamIndex)
      Overrides:
      findEntityMappingInformation in class org.fastnate.generator.context.PluralProperty<E,Collection<T>,T>
    • writeValueExpression

      protected void writeValueExpression(org.fastnate.generator.statements.TableStatement statement, T value, org.fastnate.generator.statements.ColumnExpression expression)
      Overrides:
      writeValueExpression in class org.fastnate.generator.context.PluralProperty<E,Collection<T>,T>