I am getting "During synchronization a new object was found through a relationship that was not marked cascade PERSIST" when attempting to persist an object Word() that has a Many-To-Many field mapping to a table Topics. The relations bridge table is Topic_links. What complicates the problem is that I always use the Eclipse Workbench to setup my entities, which makes it hard to find solutions as most people suggest answers using annotations, which the workbench does not use. I have not found a way in the workbench to set the CASCADE option for the relationship to PERSIST. I have added the following entry to the persistence.xml:
<property name="eclipselink.persistence-context.persist-on-commit" value="true"/>
The exception is still being thrown.