refactoring adgensqlrepository: moved decision if "create or update needed" -> entity.ID > 0 to entity classes