glassfish hibernate binding parameters, easy way

when you search for showing parameters in hibernate. All articles will say that put these lines in log4j.properties :

log4j.logger.org.hibernate.SQL=debug
log4j.logger.org.hibernate.type=trace

but if you are using glassfish this will not work. and you will find this glassfish way :

https://blogs.oracle.com/naman/entry/configure_log4j_for_use_in

but there is a more easy way :

Glassfish admin console -> Configurations -> Server-config -> Logger Settings -> Log levels -> Add Logger -> org.hibernate.type : FINEST

Screen Shot 2015-01-18 at 01.58.51

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s