A hibernate api application example