Re: SQL Logging in 3.0

2010-07-11 Thread Michael Gentry
Hmm, looking at the adapter code, it doesn't appear that our H2 adapter supports auto-increment PKs. That is my first mistake. :-) The logging is probably getting confused because the model specifies auto-increment, but the code/bind is not doing that. mrg On Sun, Jul 11, 2010 at 10:33 AM, Mic

Re: SQL Logging in 3.0

2010-07-11 Thread Michael Gentry
A little background. I'm using an in-memory H2 database (jdbc:h2:mem:cbe) and have CreateIfNoSchemaStrategy selected in the model to create the schema in memory on startup. For my DbEntities I had Database-Generated selected for the primary keys. In looking at the logs, I noticed that the CREATE

Re: SQL Logging in 3.0

2010-07-11 Thread Andrus Adamchik
I haven't experienced that, but seems like a bug. Is it reproducible? Andrus On Jul 11, 2010, at 2:25 AM, Michael Gentry wrote: Has anyone noticed/experienced the following logging anomaly in 3.0? INFO: INSERT INTO Users (first_name, id, last_name, password, role, username) VALUES (?, ?, ?,

SQL Logging in 3.0

2010-07-10 Thread Michael Gentry
Has anyone noticed/experienced the following logging anomaly in 3.0? INFO: INSERT INTO Users (first_name, id, last_name, password, role, username) VALUES (?, ?, ?, ?, ?, ?) INFO: [bind: 1->first_name:'Wesley', 2->last_name:203, 3->password:'Perry', 4->role:NULL, 5->username:NULL, 6->username:'wpe