Porting versioning to hibernate/service based