Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why doesnt hibernate log input ?

 
jay vas
Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys : I've set the property "showSql" in my Hibernate Configuration to "true"... but all it shows is ...

insert into tableName (field1, field2, ...) values (?, ?, ...).

instead of

insert into tableName (field1, field2, ...) values (1.0, 6.10, ...).

as one would want it to. Is there another parameter I have to set to convince hibernate into actually showing me the inputs to the sql statements it executes ?
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This has been discussed a lot of times on the Hibernate forums. Here's one which even proposed a solution:
Show values in Hibernate queries. In short, there's currently no direct way of getting those values displayed in the logs. Some recommend using p6Spy (i havent tried this).
[ June 05, 2007: Message edited by: Jaikiran Pai ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic