mapProperty.getPersistentClass() : associatedClass; Value indexValue = createFormulatedValue( mapProperty.getValue(), map, targetPropertyName, associatedClass, targetPropertyPersistentClass, buildingContext ); if ( isEmbedded || mappingDefinedAttributeOverrideOnMapKey( property ) ) { classType = AnnotatedClassType.EMBEDDABLE; if ( isHibernateExtensionMapping() ) { inferredData = new PropertyPreloadedData( AccessType.PROPERTY, "index", keyXClass ); final javax.persistence.ForeignKey foreignKey = getMapKeyForeignKey( property ); if ( foreignKey != null ) { if ( foreignKey.value() == ConstraintMode.NO_CONSTRAINT ) { bindManytoManyInverseFk( collectionEntity, mapKeyManyToManyColumns,
public void secondPass(Map persistentClasses, Map inheritedMetas) throws MappingException { bindStarToManySecondPass( persistentClasses, collType, fkJoinColumns, keyColumns, inverseColumns, elementColumns, isEmbedded, property, unique, assocTableBinder, ignoreNotFound, buildingContext ); bindKeyFromAssociationTable( collType, persistentClasses, mapKeyPropertyName, property, isEmbedded, buildingContext, mapKeyColumns, mapKeyManyToManyColumns, inverseColumns != null ? inverseColumns[0].getPropertyName() : null ); makeOneToManyMapKeyColumnNullableIfNotInProperty( property ); } };
fromAndWhere = getFromAndWhereFormula( associatedClass.getTable().getName(), element.getColumnIterator(), fromAndWhere = getFromAndWhereFormula( targetPropertyPersistentClass.getTable() .getQualifiedTableName() Component component = (Component) value; Iterator properties = component.getPropertyIterator(); Component indexComponent = new Component( getBuildingContext(), collection ); indexComponent.setComponentClassName( component.getComponentClassName() ); while ( properties.hasNext() ) { newProperty.setSelectable( current.isSelectable() ); newProperty.setValue( createFormulatedValue( current.getValue(), collection, targetPropertyName, associatedClass, associatedClass, buildingContext if ( value instanceof ManyToOne ) { ManyToOne sourceManyToOne = (ManyToOne) sourceValue; ManyToOne targetManyToOne = new ManyToOne( getBuildingContext(), collection.getCollectionTable() ); targetManyToOne.setFetchMode( FetchMode.DEFAULT ); targetManyToOne.setLazy( true ); targetValue = new SimpleValue( getBuildingContext(), collection.getCollectionTable() ); targetValue.copyTypeFrom( sourceValue );
Value indexValue = createFormulatedValue( mapProperty.getValue(), map, targetPropertyName, associatedClass ); map.setIndex( indexValue ); if ( isHibernateExtensionMapping() ) { inferredData = new PropertyPreloadedData( AccessType.PROPERTY, "index", elementClass ); bindManytoManyInverseFk( collectionEntity, mapKeyManyToManyColumns,
Value indexValue = createFormulatedValue( mapProperty.getValue(), map, targetPropertyName, associatedClass ); map.setIndex( indexValue ); bindManytoManyInverseFk( collectionEntity, mapKeyManyToManyColumns,
newProperty.setPropertyAccessorName( current.getPropertyAccessorName() ); newProperty.setSelectable( current.isSelectable() ); newProperty.setValue( createFormulatedValue( current.getValue(), collection, targetPropertyName, associatedClass ) );
protected Collection createCollection(PersistentClass persistentClass) { return new org.hibernate.mapping.Map( getBuildingContext(), persistentClass ); }
protected Collection createCollection(PersistentClass persistentClass) { return new org.hibernate.mapping.Map( getMappings(), persistentClass ); }
Value indexValue = createFormulatedValue( mapProperty.getValue(), map, targetPropertyName, associatedClass, mappings ); if ( isHibernateExtensionMapping() ) { inferredData = new PropertyPreloadedData( AccessType.PROPERTY, "index", elementClass ); bindManytoManyInverseFk( collectionEntity, mapKeyManyToManyColumns,
fromAndWhere = getFromAndWhereFormula( associatedClass.getMappedTable().getName(), element.getMappedColumns(), fromAndWhere = getFromAndWhereFormula( targetPropertyPersistentClass.getMappedTable().getQualifiedTableName().toString(), element.getMappedColumns(), Component indexComponent = new Component( getBuildingContext(), collection ); indexComponent.setComponentClassName( component.getEmbeddableClassName() ); attributes.stream() .map( Property.class::cast ) .forEach( current -> { Property newProperty = new Property( getBuildingContext() ); newProperty.setCascade( current.getCascade() ); newProperty.setValueGenerationStrategy( current.getValueGenerationStrategy() ); newProperty.setSelectable( current.isSelectable() ); newProperty.setValue( createFormulatedValue( current.getValue(), collection, associatedClass, associatedClass ) ); if ( value instanceof ManyToOne ) { final ManyToOne sourceManyToOne = (ManyToOne) sourceValue; final ManyToOne targetManyToOne = new ManyToOne( getBuildingContext(), collection.getMappedTable() ); targetManyToOne.setFetchMode( FetchMode.DEFAULT ); targetManyToOne.setLazy( true );
newProperty.setSelectable( current.isSelectable() ); newProperty.setValue( createFormulatedValue( current.getValue(), collection, targetPropertyName, associatedClass, mappings
protected Collection createCollection(PersistentClass persistentClass) { return new org.hibernate.mapping.Map( getBuildingContext(), persistentClass ); }
protected Collection createCollection(PersistentClass persistentClass) { return new org.hibernate.mapping.Map( getMappings(), persistentClass ); }
mapProperty.getPersistentClass() : associatedClass; Value indexValue = createFormulatedValue( mapProperty.getValue(), map, if ( isEmbedded || mappingDefinedAttributeOverrideOnMapKey( property ) ) { classType = AnnotatedClassType.EMBEDDABLE; if ( isHibernateExtensionMapping() ) { inferredData = new PropertyPreloadedData( AccessType.PROPERTY, "index", keyXClass ); final javax.persistence.ForeignKey foreignKey = getMapKeyForeignKey( property ); if ( foreignKey != null ) { if ( foreignKey.value() == ConstraintMode.NO_CONSTRAINT ) { bindManytoManyInverseFk( collectionEntity, mapKeyManyToManyColumns,
Value indexValue = createFormulatedValue( mapProperty.getValue(), map, targetPropertyName, associatedClass, mappings ); if ( isHibernateExtensionMapping() ) { inferredData = new PropertyPreloadedData( AccessType.PROPERTY, "index", elementClass ); bindManytoManyInverseFk( collectionEntity, mapKeyManyToManyColumns,
public void secondPass(Map persistentClasses, Map inheritedMetas) throws MappingException { bindStarToManySecondPass( persistentClasses, collType, fkJoinColumns, keyColumns, inverseColumns, elementColumns, isEmbedded, property, unique, assocTableBinder, ignoreNotFound, mappings ); bindKeyFromAssociationTable( collType, persistentClasses, mapKeyPropertyName, property, isEmbedded, mappings, mapKeyColumns, mapKeyManyToManyColumns, inverseColumns != null ? inverseColumns[0].getPropertyName() : null ); } };
newProperty.setSelectable( current.isSelectable() ); newProperty.setValue( createFormulatedValue( current.getValue(), collection, targetPropertyName, associatedClass, mappings
public void secondPass(Map persistentClasses, Map inheritedMetas) throws MappingException { bindStarToManySecondPass( persistentClasses, collType, fkJoinColumns, keyColumns, inverseColumns, elementColumns, isEmbedded, property, unique, assocTableBinder, ignoreNotFound, mappings ); bindKeyFromAssociationTable( collType, persistentClasses, mapKeyPropertyName, property, isEmbedded, mappings, mapKeyColumns, mapKeyManyToManyColumns, inverseColumns != null ? inverseColumns[0].getPropertyName() : null ); } };