@ Override public void persistJoinTable ( JoinTableData joinTableData ) { String schemaName = KunderaMetadataManager . getEntityMetadata ( kunderaMetadata , joinTableData . getEntityClass ( ) ) . getSchema ( ) ; String joinTableName = joinTableData . getJoinTableName ( ) ; String joinColumnName = joinTableData . getJoinColumnName ( ) ; String invJoinColumnName = joinTableData . getInverseJoinColumnName ( ) ; Map < Object , Set < Object > > joinTableRecords = joinTableData . getJoinTableRecords ( ) ; for ( Object key : joinTableRecords . keySet ( ) ) { Set < Object > values = joinTableRecords . get ( key ) ; insertRecordInJoinTable ( schemaName , joinTableName , joinColumnName , invJoinColumnName , key , values ) ; } }
Inserts records into JoinTable .