Package org.fastnate.hibernate
Class ManyToAnyMapProperty<E,K,T>
- Type Parameters:
E- The type of the container entityK- The type of the key of the mapT- 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
ConstructorsConstructorDescriptionManyToAnyMapProperty(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 withManyToAny. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.fastnate.generator.context.PluralProperty.EntityMappingInformationfindEntityMappingInformation(org.fastnate.generator.context.AttributeAccessor attribute, jakarta.persistence.AssociationOverride associationOverride, int valueClassParamIndex) protected voidwriteValueExpression(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, isMapPropertyMethods 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, newElementMethods inherited from class org.fastnate.generator.context.Property
createPreInsertStatements, failIfRequired, getAttribute, getExpression, getName, getPredicate, getType, isComposition, setValue, toString
-
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 withManyToAny.- Parameters:
sourceClass- the description of the current inspected class that contains this propertyattribute- accessor to the represented attributeassociationOverride- the configured assocation overrideattributeOverride- the configured attribute override, if we reference anElementCollection
-
-
Method Details
-
findEntityMappingInformation
protected org.fastnate.generator.context.PluralProperty.EntityMappingInformation findEntityMappingInformation(org.fastnate.generator.context.AttributeAccessor attribute, jakarta.persistence.AssociationOverride associationOverride, int valueClassParamIndex) -
writeValueExpression
protected void writeValueExpression(org.fastnate.generator.statements.TableStatement statement, T value, org.fastnate.generator.statements.ColumnExpression expression)
-