Class ManyToAnyMapProperty<E,K,T>

java.lang.Object
org.fastnate.generator.context.Property<E,Map<K,T>>
org.fastnate.generator.context.PluralProperty<E,Map<K,T>,T>
org.fastnate.generator.context.MapProperty<E,K,T>
org.fastnate.hibernate.ManyToAnyMapProperty<E,K,T>
Type Parameters:
E - The type of the container entity
K - The type of the key of the map
T - The type of the entity inside of the collection

public class ManyToAnyMapProperty<E,K,T> extends org.fastnate.generator.context.MapProperty<E,K,T>
Describes a property of an EntityClass that references a map 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
    ManyToAnyMapProperty(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.MapProperty

    createPostInsertStatements, findReferencedEntities, getKeyClass, getKeyColumn, getKeyConverter, getKeyEntityClass, getValue, isMapProperty

    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

    • ManyToAnyMapProperty

      public ManyToAnyMapProperty(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,Map<K,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,Map<K,T>,T>