def refresh(session, *entities):
    """Refresh entities from the current session."""
    if not entities:
        return []
    return [session.query(entity.__class__).get(entity.id) for entity in entities]