File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes why doesnt hibernate log input ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "why doesnt hibernate log input ?" Watch "why doesnt hibernate log input ?" New topic
Author

why doesnt hibernate log input ?

jay vas
Ranch Hand

Joined: Aug 30, 2005
Posts: 407
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

Joined: Jul 20, 2005
Posts: 9317
    
109

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 ]

[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: why doesnt hibernate log input ?
 
Similar Threads
Hibernate: Running a query using an object
Constructing prepareStatement efficiently
Column count doesn't match value count at row 1
How to determine Primary Key of New Record
how to solve when i need to call difference method in many time