-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Weird Cascading Problem
PostPosted: Tue Feb 06, 2007 6:23 pm 
Newbie

Joined: Mon Nov 27, 2006 5:05 pm
Posts: 4
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 (?, ?)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.