(siehe here für das Problem Ich versuche zu lösen)Erste winter clob Parameter
Wie Sie sich anmelden erhalten winter clob Werte es geht einfügen loggt sein. Es meldet sich andere Werttypen wie Integer usw.
Ich habe folgendes in meinem log4j config:
log4j.logger.net.sf.hibernate.SQL=DEBUG
log4j.logger.org.hibernate.SQL=DEBUG
log4j.logger.net.sf.hibernate.type=DEBUG
log4j.logger.org.hibernate.type=DEBUG
Welche Ausgang wie produziert:
(org.hibernate.SQL) insert into NoteSubstitutions (note, listIndex, substitution) values (?, ?, ?)
(org.hibernate.type.LongType) binding '170650' to parameter: 1
(org.hibernate.type.IntegerType) binding '0' to parameter: 2
(org.hibernate.SQL) insert into NoteSubstitutions (note, listIndex, substitution) values (?, ?, ?)
(org.hibernate.type.LongType) binding '170650' to parameter: 1
(org.hibernate.type.IntegerType) binding '1' to parameter: 2
aber Sie werden bemerken, dass es nie parameter: 3
anzeigt, was unser clob ist.
Was würde ich wirklich will, ist so etwas wie:
(org.hibernate.SQL) insert into NoteSubstitutions (note, listIndex, substitution) values (?, ?, ?)
(org.hibernate.type.LongType) binding '170650' to parameter: 1
(org.hibernate.type.IntegerType) binding '0' to parameter: 2
(org.hibernate.type.ClobType) binding 'something' to parameter: 3
(org.hibernate.SQL) insert into NoteSubstitutions (note, listIndex, substitution) values (?, ?, ?)
(org.hibernate.type.LongType) binding '170650' to parameter: 1
(org.hibernate.type.IntegerType) binding '1' to parameter: 2
(org.hibernate.type.ClobType) binding 'something else' to parameter: 3
Wie bekomme ich es dies im Protokoll zu zeigen?
Ja, das hat auch nicht geholfen. Ich denke, es ist nur, weil Sie nicht garantieren können, dass ein Clob dumpable zu einer Konsole ist, so tut es nicht. – SCdF