Hibernate code
Updated sql script