[prev in list] [next in list] [prev in thread] [next in thread]
List: jboss-user
Subject: [JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Can't save data in database
From: khoff999 <nukes () jboss ! org>
Date: 2005-08-31 21:14:16
Message-ID: 10145254.1125522856511.JavaMail.jboss () colo-br-02 ! atl ! jboss ! com
[Download RAW message or body]
Here's a little more I found out:
During a save Hibernate is executing a method in class \
AbstractSaveEventListener that is testing whether a variable useIdentityColumn is \
true or false. It's false in mine (I don't know why, I do have an indentity column \
defined). It looks to me that the call to source.getActionQueue().execute(insert);
is being skipped. I'm just guessing this in the path it needs to go down to execute \
the save. There must be another configuration setting needed to make \
useIdentityColumn == true.
if (useIdentityColumn) {
EntityIdentityInsertAction insert = new EntityIdentityInsertAction
(values, entity, persister, source);
source.getActionQueue().execute(insert);
id = insert.getGeneratedId();
persister.setIdentifier( entity, id, source.getEntityMode() );
source.getPersistenceContext().checkUniqueness(id, persister, entity);
//source.getBatcher().executeBatch (); //found another way to ensure that all \
batched joined inserts have been executed }
View the original post : \
http://locahost:8080/index.html?module=bb&op=viewtopic&p=3892518#3892518
Reply to the post : http://locahost:8080/index.html?module=bb&op=posting&mode=reply&p=3892518
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic