Package org.fastnate.hibernate
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 entityT- 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
ConstructorsConstructorDescriptionManyToAnyCollectionProperty(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.CollectionProperty
createPostInsertStatements, findReferencedEntities, getKeyColumn, getOrderColumn, getValue, isCollectionPropertyMethods 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
-
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 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) - Overrides:
findEntityMappingInformationin classorg.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:
writeValueExpressionin classorg.fastnate.generator.context.PluralProperty<E,Collection<T>, T>
-