Property referencedProperty = properties.next(); if ( referencedProperty.isComposite() ) { Property property = createComponentProperty( referencedPersistentClass, isExplicitReference, columnByReferencedName, index, referencedProperty ); component.addProperty( property ); Property property = createSimpleProperty( referencedPersistentClass, isExplicitReference, columnByReferencedName, index, referencedProperty ); component.addProperty( property );
private void topologicalSort( List<CopyIdentifierComponentSecondPass> sorted, Set<CopyIdentifierComponentSecondPass> toSort ) { while (!toSort.isEmpty()) { CopyIdentifierComponentSecondPass independent = null; searchForIndependent: for ( CopyIdentifierComponentSecondPass secondPass : toSort ) { for ( CopyIdentifierComponentSecondPass other : toSort ) { if (secondPass.dependentUpon( other )) { continue searchForIndependent; } } independent = secondPass; break; } if (independent == null) { throw new MappingException( "cyclic dependency in derived identities" ); } toSort.remove( independent ); sorted.add( independent ); } }
value.addColumn( new Column( columnName ) ); if ( joinColumn != null ) { applyComponentColumnSizeValueToJoinColumn( column, joinColumn ); joinColumn.linkWithValue( value );
if ( referencedEntityName != null ) { comp = createComponent( propertyHolder, inferredData, isComponentEmbedded, isIdentifierMapper, buildingContext ); SecondPass sp = new CopyIdentifierComponentSecondPass( comp, referencedEntityName,
applyComponentColumnValuesToJoinColumn( column, joinColumn ); joinColumn.linkWithValue( value );
if ( referencedEntityName != null ) { comp = createComponent( propertyHolder, inferredData, isComponentEmbedded, isIdentifierMapper ); SecondPass sp = new CopyIdentifierComponentSecondPass( comp, referencedEntityName,
buildingContext ); SecondPass sp = new CopyIdentifierComponentSecondPass( comp, referencedEntityName,
Property componentProperty = createComponentProperty( referencedValue.getOwner(), isExplicitReference, columnByReferencedName, index, referencedComponentProperty ); value.addProperty( componentProperty ); Property componentProperty = createSimpleProperty( referencedValue.getOwner(), isExplicitReference, columnByReferencedName, index, referencedComponentProperty ); value.addProperty( componentProperty );
private void topologicalSort( List<CopyIdentifierComponentSecondPass> sorted, Set<CopyIdentifierComponentSecondPass> toSort) { while ( !toSort.isEmpty() ) { CopyIdentifierComponentSecondPass independent = null; searchForIndependent: for ( CopyIdentifierComponentSecondPass secondPass : toSort ) { for ( CopyIdentifierComponentSecondPass other : toSort ) { if ( secondPass.dependentUpon( other ) ) { continue searchForIndependent; } } independent = secondPass; break; } if ( independent == null ) { throw new MappingException( "cyclic dependency in derived identities" ); } toSort.remove( independent ); sorted.add( independent ); } }
if ( referencedEntityName != null ) { comp = createComponent( propertyHolder, inferredData, isComponentEmbedded, isIdentifierMapper, mappings ); SecondPass sp = new CopyIdentifierComponentSecondPass( comp, referencedEntityName,
for(PersistentAttributeMapping referencedMapping : declaredPersistentAttributes){ if ( referencedMapping instanceof Component ) { Property property = createComponentProperty( isExplicitReference, columnByReferencedName, Property property = createSimpleProperty( referencedPersistentClass, isExplicitReference,
if ( referencedEntityName != null ) { comp = createComponent( propertyHolder, inferredData, isComponentEmbedded, isIdentifierMapper, mappings ); SecondPass sp = new CopyIdentifierComponentSecondPass( comp, referencedEntityName,
for(PersistentAttributeMapping referencedComponentProperty : declaredPersistentAttributes){ if ( referencedComponentProperty instanceof Component ) { Property componentProperty = createComponentProperty( isExplicitReference, columnByReferencedName, Property componentProperty = createSimpleProperty( referencedValue.getOwner(), isExplicitReference,