update to hibernate 4 and adding log4j logging for hibernate sql