Hi,
I have already find how to use hibernate debug. This is the result of the execution of my application.
Thanks for your help,
Joao Rangel
12:45:25,330 DEBUG SessionImpl:476 - opened session
12:45:25,350 DEBUG Cascades:274 - unsaved-value strategy NULL
12:45:25,350 DEBUG SessionImpl:1278 - saveOrUpdate() unsaved instance
12:45:25,360 DEBUG IncrementGenerator:62 - fetching initial value: select max(chvp) from DocsElement
12:45:25,360 DEBUG IncrementGenerator:76 - first free id: 1
12:45:25,360 DEBUG SessionImpl:732 - saving [FolderEscala#1]
12:45:25,380 DEBUG Cascades:356 - processing cascades for: FolderEscala
12:45:25,380 DEBUG Cascades:364 - done processing cascades for: FolderEscala
12:45:25,390 DEBUG Cascades:356 - processing cascades for: FolderEscala
12:45:25,400 DEBUG Cascades:364 - done processing cascades for: FolderEscala
12:45:25,590 DEBUG SessionImpl:2217 - flushing session
12:45:25,590 DEBUG Cascades:356 - processing cascades for: FolderEscala
12:45:25,590 DEBUG Cascades:364 - done processing cascades for: FolderEscala
12:45:25,590 DEBUG SessionImpl:2326 - Flushing entities and processing referenced collections
12:45:25,600 DEBUG SessionImpl:2645 - Processing unreferenced collections
12:45:25,620 DEBUG SessionImpl:2656 - Scheduling collection removes/(re)creates/updates
12:45:25,620 DEBUG SessionImpl:2229 - Flushed: 1 insertions, 0 updates, 0 deletions to 1 objects
12:45:25,620 DEBUG SessionImpl:2234 - Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections
12:45:25,620 DEBUG SessionImpl:2264 - executing flush
12:45:25,620 DEBUG NormalizedEntityPersister:499 - Inserting entity: [FolderEscala#1]
12:45:25,650 DEBUG BatcherImpl:192 - about to open: 0 open PreparedStatements, 0 open ResultSets
12:45:25,660 DEBUG BatcherImpl:226 - prepared statement get: insert into DocsElement (name, creation, lastUpdate, chvp) values (?, ?, ?, ?)
12:45:25,660 DEBUG BatcherImpl:232 - preparing statement
12:45:25,660 DEBUG BatcherImpl:192 - about to open: 1 open PreparedStatements, 0 open ResultSets
12:45:25,680 DEBUG BatcherImpl:226 - prepared statement get: insert into DocsFolder (subChvp) values (?)
12:45:25,680 DEBUG BatcherImpl:232 - preparing statement
12:45:25,680 DEBUG BatcherImpl:192 - about to open: 2 open PreparedStatements, 0 open ResultSets
12:45:25,680 DEBUG BatcherImpl:226 - prepared statement get: insert into FolderEscala (subChvp) values (?)
12:45:25,710 DEBUG BatcherImpl:232 - preparing statement
12:45:25,710 DEBUG NormalizedEntityPersister:368 - Dehydrating entity: [FolderEscala#1]
12:45:25,730 DEBUG JDBCExceptionReporter:36 - SQL Exception
java.sql.SQLException: General error, message from server: "Cannot add or update a child row: a foreign key constraint fails"
|