introduction of hibernate (partially implemented).