); ( (ManyToOne) value ).setReferenceToPrimaryKey( referencedPropertyName == null ); value.createForeignKey();
if ( StringHelper.isNotEmpty( manyToOneSource.getReferencedEntityAttributeName() ) ) { manyToOneBinding.setReferencedPropertyName( manyToOneSource.getReferencedEntityAttributeName() ); manyToOneBinding.setReferenceToPrimaryKey( false ); manyToOneBinding.setReferenceToPrimaryKey( true );
( (ManyToOne) otherSideProperty.getValue() ).setReferenceToPrimaryKey( false );
if ( StringHelper.isNotEmpty( elementSource.getReferencedEntityAttributeName() ) ) { elementBinding.setReferencedPropertyName( elementSource.getReferencedEntityAttributeName() ); elementBinding.setReferenceToPrimaryKey( false ); elementBinding.setReferenceToPrimaryKey( true );
); ( (ManyToOne) value ).setReferenceToPrimaryKey( referencedPropertyName == null ); value.createForeignKey();
boolean referenceToPrimaryKey = pkColumns.containsAll(referencedColumns) && pkColumns.size() == referencedColumns.size(); m2o.setReferenceToPrimaryKey(referenceToPrimaryKey); if(!referenceToPrimaryKey) { logger.debug("Foreign key {} is not a reference to the primary key. Creating synthetic property.",
boolean referenceToPrimaryKey = pkColumns.containsAll(referencedColumns) && pkColumns.size() == referencedColumns.size(); m2o.setReferenceToPrimaryKey(referenceToPrimaryKey); if(!referenceToPrimaryKey) { logger.debug("Foreign key {} is not a reference to the primary key. Creating synthetic property.",
if ( StringHelper.isNotEmpty( manyToOneSource.getReferencedEntityAttributeName() ) ) { manyToOneBinding.setReferencedPropertyName( manyToOneSource.getReferencedEntityAttributeName() ); manyToOneBinding.setReferenceToPrimaryKey( false ); manyToOneBinding.setReferenceToPrimaryKey( true );
( (ManyToOne) otherSideProperty.getValue() ).setReferenceToPrimaryKey( false );
if ( StringHelper.isNotEmpty( elementSource.getReferencedEntityAttributeName() ) ) { elementBinding.setReferencedPropertyName( elementSource.getReferencedEntityAttributeName() ); elementBinding.setReferenceToPrimaryKey( false ); elementBinding.setReferenceToPrimaryKey( true );