Add session.flush() to method save in EntityWithIdDao<T extends EntityWithId>