Hi,
I'm not using an interceptor.
Here's the Hibernate logging statements. It appears to bind the correct value to the prepared statement.
The column is a VARCHAR2(15).
Something interesting is that I added a dummy junk column of the same type.
I think map the same property to both the junk column and the actual column.
<property name="fname" column="junk" type="string" />
<property name="fname" column="fname" type="string" />
Both of these columns now update correctly. I thought that the first column, the junk column, would be corrupted and the fname column would be fine. I find it odd that both columns are ok.
Any suggestions?
I thought about implementing the Lifecycle interface or to add an Interceptor to see what was going on, but since Hibernate's debugging statements show that the correct value is being bound to the prepared statement, should I even pursue this?
Here are the debug statements:
2003-09-16 09:59:34,195 [ExecuteThread: '11' for queue: 'default'](EntityPersist
er.java:617) DEBUG - Updating entity: com.ditech.signingappt.db.WebAppUserDbBea
n#BNL
2003-09-16 09:59:34,195 [ExecuteThread: '11' for queue: 'default'](BatcherImpl.j
ava:166) DEBUG - about to open: 0 open PreparedStatements, 0 open ResultSets
2003-09-16 09:59:34,195 [ExecuteThread: '11' for queue: 'default'](DriverManager
ConnectionProvider.java:77) DEBUG - total checked-out connections: 0
2003-09-16 09:59:34,195 [ExecuteThread: '11' for queue: 'default'](DriverManager
ConnectionProvider.java:83) DEBUG - using pooled JDBC connection, pool size: 0
2003-09-16 09:59:34,195 [ExecuteThread: '11' for queue: 'default'](SessionFactor
yImpl.java:526) DEBUG - prepared statement get: update web_app_users set fname=
?, lname=?, role_cd=?, status=?, notes=?, insert_date=?, usr_pswd=? where userna
me=?
Hibernate: update web_app_users set fname=?, lname=?, role_cd=?, status=?, notes
=?, insert_date=?, usr_pswd=? where username=?
2003-09-16 09:59:34,210 [ExecuteThread: '11' for queue: 'default'](SessionFactor
yImpl.java:536) DEBUG - preparing statement
2003-09-16 09:59:34,210 [ExecuteThread: '11' for queue: 'default'](EntityPersist
er.java:366) DEBUG - Dehydrating entity: com.ditech.signingappt.db.WebAppUserDb
Bean#BNL
2003-09-16 09:59:34,210 [ExecuteThread: '11' for queue: 'default'](NullableType.
java:44) DEBUG - binding 'Benson' to parameter: 1
2003-09-16 09:59:34,210 [ExecuteThread: '11' for queue: 'default'](NullableType.
java:44) DEBUG - binding 'Liu' to parameter: 2
2003-09-16 09:59:34,210 [ExecuteThread: '11' for queue: 'default'](NullableType.
java:44) DEBUG - binding 'vend' to parameter: 3
2003-09-16 09:59:34,210 [ExecuteThread: '11' for queue: 'default'](NullableType.
java:44) DEBUG - binding 'A' to parameter: 4
2003-09-16 09:59:34,210 [ExecuteThread: '11' for queue: 'default'](NullableType.
java:44) DEBUG - binding '' to parameter: 5
2003-09-16 09:59:34,210 [ExecuteThread: '11' for queue: 'default'](NullableType.
java:44) DEBUG - binding '16 September 2003 09:59:34' to parameter: 6
2003-09-16 09:59:34,210 [ExecuteThread: '11' for queue: 'default'](NullableType.
java:44) DEBUG - binding 'E+zHj0BN0lihefdGmRMLUollTy8n9NGB8wyj4uD9ti0=' to para
meter: 7
2003-09-16 09:59:34,210 [ExecuteThread: '11' for queue: 'default'](NullableType.
java:44) DEBUG - binding 'BNL' to parameter: 8
2003-09-16 09:59:34,210 [ExecuteThread: '11' for queue: 'default'](BatchingBatch
er.java:24) DEBUG - Adding to batch
2003-09-16 09:59:34,210 [ExecuteThread: '11' for queue: 'default'](BatchingBatch
er.java:46) DEBUG - Executing batch size: 1
2003-09-16 09:59:34,210 [ExecuteThread: '11' for queue: 'default'](BatcherImpl.j
ava:173) DEBUG - done closing: 0 open PreparedStatements, 0 open ResultSets
-bnl
|