upgrade Hibernate to 4.2.3
add work-around for https://hibernate.atlassian.net/browse/HHH-7002