I am having an issue where cascading only works the first time that I connect to / create the database.
I have an object that has a one-to-many relationship with other objects. If I delete the DB and then run my application everything works as expected. However when I restart the application everything appears to work, but an insert statement is missing. I have no idea why this would happen.
Any help would be greatly appreciated.
[java] Hibernate: insert into RunConfiguration (name, description, ldcConfig_id) values (?, ?, ?)
[java] Hibernate: insert into RunConfigurationFile (filename, fileType) values (?, ?)
[java] Hibernate: insert into RunConfigurationFile (filename, fileType) values (?, ?)
[java] Hibernate: insert into RunConfigurationFile (filename, fileType) values (?, ?)
[java] Hibernate: insert into RunConfigurationFile (filename, fileType) values (?, ?)
[java] Hibernate: insert into RunConfigurationFile (filename, fileType) values (?, ?)
[java] Hibernate: insert into RunConfigurationFile (filename, fileType) values (?, ?)
[java] Hibernate: insert into RunConfigurationFile (filename, fileType) values (?, ?)
[java] Hibernate: insert into RunConfigurationFile (filename, fileType) values (?, ?)
[java] Hibernate: insert into RunConfigurationFile (filename, fileType) values (?, ?)
[java] Hibernate: insert into RunConfigurationFile (filename, fileType) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationFile (RunConfiguration_id, configFiles_id) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationFile (RunConfiguration_id, configFiles_id) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationFile (RunConfiguration_id, configFiles_id) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationFile (RunConfiguration_id, configFiles_id) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationFile (RunConfiguration_id, configFiles_id) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationFile (RunConfiguration_id, configFiles_id) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationFile (RunConfiguration_id, configFiles_id) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationFile (RunConfiguration_id, configFiles_id) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationFile (RunConfiguration_id, configFiles_id) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationFile (RunConfiguration_id, configFiles_id) values (?, ?)
[java] Hibernate: insert into LDCConfig (collectAllMessages, collectAllUserData, genericEnabled, messagesEnabled, userDataEnabled) values (?, ?, ?, ?, ?)
[java] Hibernate: insert into RunConfigurationVariable (name, value) values (?, ?)
[java] Hibernate: update RunConfiguration set name=?, description=?, ldcConfig_id=? where id=?
[java] Hibernate: insert into RunConfigurationVariable (name, value) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationVariable (RunConfiguration_id, configVars_id) values (?, ?)
[java] Hibernate: insert into RunConfigurationVariable (name, value) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationVariable (RunConfiguration_id, configVars_id) values (?, ?)
[java] Hibernate: insert into RunConfigurationVariable (name, value) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationVariable (RunConfiguration_id, configVars_id) values (?, ?)
[java] Hibernate: insert into RunConfigurationVariable (name, value) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationVariable (RunConfiguration_id, configVars_id) values (?, ?)
[java] Hibernate: insert into RunConfigurationVariable (name, value) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationVariable (RunConfiguration_id, configVars_id) values (?, ?)
[java] Hibernate: insert into RunConfigurationVariable (name, value) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationVariable (RunConfiguration_id, configVars_id) values (?, ?)
[java] Hibernate: insert into RunConfigurationVariable (name, value) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationVariable (RunConfiguration_id, configVars_id) values (?, ?)
[java] Hibernate: insert into RunConfigurationVariable (name, value) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationVariable (RunConfiguration_id, configVars_id) values (?, ?)
[java] Hibernate: insert into RunConfigurationVariable (name, value) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationVariable (RunConfiguration_id, configVars_id) values (?, ?)
This is the line that dissapears when I try to connect to an existing DB [java] Hibernate: insert into AcesxManagerData_RunConfiguration (AcesxManagerData_id, runConfigs_id) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationVariable (RunConfiguration_id, configVars_id) values (?, ?)
[java] Hibernate: insert into RunConfiguration (name, description, ldcConfig_id) values (?, ?, ?)
[java] Hibernate: insert into RunConfigurationFile (filename, fileType) values (?, ?)
[java] Hibernate: insert into RunConfigurationFile (filename, fileType) values (?, ?)
[java] Hibernate: insert into RunConfigurationFile (filename, fileType) values (?, ?)
[java] Hibernate: insert into RunConfigurationFile (filename, fileType) values (?, ?)
[java] Hibernate: insert into RunConfigurationFile (filename, fileType) values (?, ?)
[java] Hibernate: insert into RunConfigurationFile (filename, fileType) values (?, ?)
[java] Hibernate: insert into RunConfigurationFile (filename, fileType) values (?, ?)
[java] Hibernate: insert into RunConfigurationFile (filename, fileType) values (?, ?)
[java] Hibernate: insert into RunConfigurationFile (filename, fileType) values (?, ?)
[java] Hibernate: insert into RunConfigurationFile (filename, fileType) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationFile (RunConfiguration_id, configFiles_id) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationFile (RunConfiguration_id, configFiles_id) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationFile (RunConfiguration_id, configFiles_id) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationFile (RunConfiguration_id, configFiles_id) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationFile (RunConfiguration_id, configFiles_id) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationFile (RunConfiguration_id, configFiles_id) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationFile (RunConfiguration_id, configFiles_id) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationFile (RunConfiguration_id, configFiles_id) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationFile (RunConfiguration_id, configFiles_id) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationFile (RunConfiguration_id, configFiles_id) values (?, ?)
[java] Hibernate: insert into LDCConfig (collectAllMessages, collectAllUserData, genericEnabled, messagesEnabled, userDataEnabled) values (?, ?, ?, ?, ?)
[java] Hibernate: insert into RunConfigurationVariable (name, value) values (?, ?)
[java] Hibernate: update RunConfiguration set name=?, description=?, ldcConfig_id=? where id=?
[java] Hibernate: insert into RunConfigurationVariable (name, value) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationVariable (RunConfiguration_id, configVars_id) values (?, ?)
[java] Hibernate: insert into RunConfigurationVariable (name, value) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationVariable (RunConfiguration_id, configVars_id) values (?, ?)
[java] Hibernate: insert into RunConfigurationVariable (name, value) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationVariable (RunConfiguration_id, configVars_id) values (?, ?)
[java] Hibernate: insert into RunConfigurationVariable (name, value) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationVariable (RunConfiguration_id, configVars_id) values (?, ?)
[java] Hibernate: insert into RunConfigurationVariable (name, value) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationVariable (RunConfiguration_id, configVars_id) values (?, ?)
[java] Hibernate: insert into RunConfigurationVariable (name, value) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationVariable (RunConfiguration_id, configVars_id) values (?, ?)
[java] Hibernate: insert into RunConfigurationVariable (name, value) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationVariable (RunConfiguration_id, configVars_id) values (?, ?)
[java] Hibernate: insert into RunConfigurationVariable (name, value) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationVariable (RunConfiguration_id, configVars_id) values (?, ?)
[java] Hibernate: insert into RunConfigurationVariable (name, value) values (?, ?)
[java] Hibernate: insert into RunConfiguration_RunConfigurationVariable (RunConfiguration_id, configVars_id) values (?, ?)
WHERE IN THE HECK DID MY INSERT GO??
[java] Hibernate: insert into RunConfiguration_RunConfigurationVariable (RunConfiguration_id, configVars_id) values (?, ?)
|