Hibernate manytoone not updating
To solve this you have to clear the Identifier cache by calling: Identifier Cache Handler.clear(); The runtime layer uses commons-logging for logging.
Here you can find an example log4j.properties file.
For example when doing test runs with a database clean up between the test run.
The exception occurs because the Idenfifier Cache, which is used by Teneo to handle synthetic id's, is not in-sync with the database.
See also this forum post: https:// To analyze what the problem is first view the error log.
The error log can be opened through: Window Error Log.
Teneo creates foreign key column names by concatenating the name of the (e)class and the property name.This file should be placed directly in the src directory of your EMF Model project.Note: also check if Eclipse copies the file to your bin/build directory.This call should be done after the datastore was created but before it is initialized.This exception can occur when using synthetic id's in combination with the creation of multiple session factories.