final String schemaName = "KunderaTests";
final String tableName = "PERSON_ADDRESS";
final String joinColumn = "PERSON_ID";
final String inverseJoinColumn = "ADDRESS_ID";
JoinTableData joinTableData = new JoinTableData(OPERATION.INSERT, schemaName, tableName, joinColumn,
inverseJoinColumn, PersonOTOOracleNoSQL.class);
String joinKey1 = "JK1";
Integer joinKey2 = new Integer(2);
Integer inverseJoinKey1 = new Integer(1);
Double inverseJoinKey2 = new Double(2.2);
String inverseJoinKey3 = "IJK3";
Set inverseJoinKeysFor1 = new HashSet();
inverseJoinKeysFor1.add(inverseJoinKey1);
inverseJoinKeysFor1.add(inverseJoinKey2);
Set inverseJoinKeysFor2 = new HashSet();
inverseJoinKeysFor2.add(inverseJoinKey2);
inverseJoinKeysFor2.add(inverseJoinKey3);
joinTableData.addJoinTableRecord(joinKey1, inverseJoinKeysFor1);
joinTableData.addJoinTableRecord(joinKey2, inverseJoinKeysFor2);
EntityManager em = emf.createEntityManager();
Map<String, Client> clients = (Map<String, Client>) em.getDelegate();
OracleNoSQLClient client = (OracleNoSQLClient) clients.get(PU);
client.persistJoinTable(joinTableData);