Disabling reflection optimizer in hibernate.